diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-04-04 12:57:30 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-04-04 13:00:04 +0200 |
commit | 949ce84c9af869d3cf151eadac8e69d720ff2774 (patch) | |
tree | d66bd5d417bcc097b887ea07f174d4bc3fc84cf5 | |
parent | 7c415f8b75964423ec980e9ff3ada15896206356 (diff) |
Slightly improve usage output
-rwxr-xr-x | gbp/scripts/config.py | 4 |
1 files 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] |