netromdk / slacker

Slacker - Easy access to the Slack API and admin of workspaces/teams.
MIT License
14 stars 0 forks source link

Fixed #26: Slacker arguments parser #27

Closed netromdk closed 6 years ago

netromdk commented 6 years ago

Implemented slacker arguments parser, supporting optional single command and arguments to run and then exit.

usage: slacker.py [options] [-- command [args..]]

Useful Slack utilities and REPL.

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

By passing '--', it signals that Slacker arguments end and a single command
and arguments begin. Slacker will exit after running that command.
netromdk commented 6 years ago

Btw. I had to require -- before a single command because there is no way of knowing whether the input is slacker arguments or command arguments and whether or not they are valid.

0verbyte commented 6 years ago

Looks good to me.