Skip to content
Snippets Groups Projects
Commit 16718b3c authored by Seblu's avatar Seblu
Browse files

Asking help with install display help including options from image

parent 6f2041c5
No related branches found
No related tags found
No related merge requests found
......@@ -115,9 +115,9 @@ def c_install(parser, args):
# get image package
repoman = load_repositories(args)
pkg = repoman.get(args.image, args.image_version)
else:
args.subparser.print_usage()
exit(1)
# add default show help options
args.subparser.add_argument("-h", "--help", action="help", default=argparse.SUPPRESS,
help="show program's version number and exit")
# Print setup information
arrow("Installing %s v%s" % (pkg.name, pkg.version))
# install start time
......@@ -217,7 +217,8 @@ p_del.add_argument("image_version")
p_del.set_defaults(func=c_del)
# install command parser
p_install = subparsers.add_parser("install", help=c_install.__doc__.lower())
p_install = subparsers.add_parser("install", add_help=False,
help=c_install.__doc__.lower())
p_install.add_argument('-f', "--force", action="store_true", default=False,
help="overwrite existing image")
p_install.add_argument("-v", "--image-version", type=int, default=None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment