vext01 / passout

Simple password manager built on GnuPG.
4 stars 1 forks source link

Missing passout command - unhelpful exception #9

Closed richlanc closed 8 years ago

richlanc commented 9 years ago

After the argparse upgrade, missing the command (ls, etc.) returns an exception. This is likely caused by a missing argument to argparse, I'm guess it should be possible to get argparse to output a nice message.

Traceback (most recent call last):
  File "/home/richard/copy/projects/passout/passout_venv/bin/passout", line 9, in <module>
    load_entry_point('passout==0.1', 'console_scripts', 'passout')()
  File "/home/richard/copy/projects/passout/passout/passout.py", line 109, in entrypoint
    args.func(args, expand=True)
AttributeError: 'Namespace' object has no attribute 'func'
vext01 commented 9 years ago

I can't reproduce this.

wilfred:passout> ./passout.py       
usage: passout.py [-h] {ls,add,rm,stdout,clip,config,tray} ...
passout.py: error: too few arguments