authenticator icon indicating copy to clipboard operation
authenticator copied to clipboard

Getting an AttributeError if I did not provide any subcommand

Open bloodpet opened this issue 6 years ago • 3 comments

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.

bloodpet avatar Sep 28 '18 08:09 bloodpet

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

JeNeSuisPasDave avatar Aug 13 '19 22:08 JeNeSuisPasDave

same here

4-0-4-notfound avatar Jul 28 '21 08:07 4-0-4-notfound

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

bloodpet avatar Oct 16 '21 03:10 bloodpet