Use argcomplete

This commit is contained in:
Bastian Kleineidam 2013-02-27 06:51:20 +01:00
parent cea32b80d2
commit e0651f51c3

3
dosage
View file

@ -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