add basic CLI

The previous main part looks like some strange testing.

I tried to match the option name and default behaviors. Hopefully, python3-ping would be like the standard `ping` if someone else can finish it.