From cea32b80d27c954be0c4f47bd3997aa3fb639c8a Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 27 Feb 2013 06:50:34 +0100 Subject: [PATCH] Use argcomplete if available. --- dosage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dosage b/dosage index 0c41543cd..53fb5e43a 100755 --- a/dosage +++ b/dosage @@ -40,6 +40,10 @@ def setupOptions(): parser.add_argument('--adult', action='store_true', default=False, help='confirms that you are old enough to view adult content') parser.add_argument('--multimatch', action='store_true', default=False, help='') parser.add_argument('comic', nargs='+', help='comic module name (including case insensitive substrings)') + try: + import argcomplete + except: + argcomplete.autocomplete(parser) return parser