commit ea908cfadca0b2e351a49d734880feca91486054
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Feb 17 14:46:37 2013 +0100
Add a help message on the command
This message provides more information on the different type of command available
and how to get more information on how to run them.
pkgdb-cli | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb-cli b/pkgdb-cli
index 54783b3..0005452 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -1047,7 +1047,11 @@ def setup_parser():
usage="%(prog)s [global options] COMMAND [options]" + usage,
prog="pkgdb-cli")
# General connection options
- parser.add_argument('command')
+ parser.add_argument('command', help='The type of action you '
+ 'would like to perform. Action must be one of %s. '
+ 'Run pkgdb-cli <action> -h to get the help of this '
+ 'specific action.' %
+ ', '.join(cmdlist))
parser.add_argument('argument', nargs=argparse.REMAINDER)
parser.add_argument('--user', dest="username",
help="FAS username")
Show replies by date