JeNeSuisPasDave / authenticator

A HOTP/TOTP command line client for generating two-factor and multi-factor authentication codes, like Google Authenticator.
MIT License
80 stars 20 forks source link

Getting an AttributeError if I did not provide any subcommand #3

Open bloodpet opened 6 years ago

bloodpet commented 6 years ago

When I run with just: $ authenticator

I get this output:

Traceback (most recent call last): File "/usr/local/bin/authenticator", line 11, in sys.exit(authenticator_command()) File "/usr/local/lib/python3.5/dist-packages/authenticator/cli.py", line 1241, in authenticator_command m.execute() File "/usr/local/lib/python3.5/dist-packages/authenticator/cli.py", line 1198, in execute if self.args.subcmd not in ( AttributeError: 'Namespace' object has no attribute 'subcmd'

It would be nice to see the usage instead.

JeNeSuisPasDave commented 5 years ago

I hope to fix this before end of 2019. Sorry, but I didn't notice this issue before today. :-(

4-0-4-notfound commented 3 years ago

same here

bloodpet commented 3 years ago

@JeNeSuisPasDave you could merge the PR if that's acceptable. It's a decent fix :)