Use argcomplete
This commit is contained in:
parent
cea32b80d2
commit
e0651f51c3
1 changed files with 2 additions and 1 deletions
3
dosage
3
dosage
|
@ -42,8 +42,9 @@ def setupOptions():
|
||||||
parser.add_argument('comic', nargs='+', help='comic module name (including case insensitive substrings)')
|
parser.add_argument('comic', nargs='+', help='comic module name (including case insensitive substrings)')
|
||||||
try:
|
try:
|
||||||
import argcomplete
|
import argcomplete
|
||||||
except:
|
|
||||||
argcomplete.autocomplete(parser)
|
argcomplete.autocomplete(parser)
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue