From 2271202a44b461a9c61ccd1815822483b64bc4d3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 4 Apr 2014 12:57:30 +0200 Subject: Slightly improve usage output --- gbp/scripts/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py index 0ebca130..07c731c0 100755 --- a/gbp/scripts/config.py +++ b/gbp/scripts/config.py @@ -29,7 +29,7 @@ import gbp.log def build_parser(name): try: parser = GbpOptionParser(command=os.path.basename(name), prefix='', - usage='%prog [options] - display configuration settings') + usage='%prog [options] command[.optionname] - display configuration settings') except ConfigParser.ParsingError as err: gbp.log.err(err) return None @@ -112,7 +112,7 @@ def main(argv): gbp.log.error("No command given") return 2 elif len(args) != 2: - gbp.log.error("Can only take a single argument") + gbp.log.error("Can only take a command or command.optionname, check --help") return 2 else: query = args[1] -- cgit v1.2.3