OrkoHunter / ping-me

A cross platform personalized Ping
Apache License 2.0
192 stars 21 forks source link

Replace getopt with argparse. #13

Closed OrkoHunter closed 8 years ago

OrkoHunter commented 8 years ago

Working with commands like

$ ping-me to attend the meeting -d 25th december -t 9 PM

I have got this message :  Attend the meeting
I have to ping you on 2015-12-25 21:00 hours.
200 OK

Using dateutil.parser, nearly all types of datetime formats are accepted !

OrkoHunter commented 8 years ago

The flags are optional now. So, basically there are going to be 3 cases,

  1. -d and -t are used. (Implemented)
  2. Only one of the -d and -t is used. (Implemented)
  3. None is used. Extract message, date and time from the string. (Not Implemented yet)