This is a very minor issue but I noticed in the latest stable version (0.12.3) that if no command-line arguments are given, the igdiscover command crashes before it reaches the expected error message.
$ igdiscover
Traceback (most recent call last):
File "/home/jesse/miniconda3/envs/example-igdiscover/bin/igdiscover", line 10, in <module>
sys.exit(main())
File "/home/jesse/miniconda3/envs/example-igdiscover/lib/python3.8/site-packages/igdiscover/__main__.py", line 85, in main
del args.func
AttributeError: func
I'm thinking the del args.funchere should probably be conditional on the value of subcommand, so you get the 'Please provide the name of a subcommand to run' message a few lines below?
This is a very minor issue but I noticed in the latest stable version (0.12.3) that if no command-line arguments are given, the igdiscover command crashes before it reaches the expected error message.
I'm thinking the
del args.func
here should probably be conditional on the value ofsubcommand
, so you get the 'Please provide the name of a subcommand to run' message a few lines below?