def main(users, after_login='category_smart_phone', item_title=None):
...
And it is being called like so:
if __name__ == '__main__':
argh.dispatch_command(main)
But when I invoke it like this:
python main.py --item_title Samsung all
I get this error:
usage: main.py [-h] [-a AFTER_LOGIN] [-i ITEM_TITLE] users
main.py: error: unrecognized arguments: --item_title all
So shouldnt --item_title Samsung be --item_title=Samsung? Neither usage works only "-i Samsung"