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

installsystems version is option -V not -v

parent 338fa15a
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ def build(options):
# Top level argument parsing
p_main = argparse.ArgumentParser()
p_main.add_argument("-v", "--version", action="version", version=installsystems.version,
p_main.add_argument("-V", "--version", action="version", version=installsystems.version,
help="show installsystems version")
p_main.add_argument('-d', "--debug", action=DebugAction, nargs=0,
help="active debug mode")
......
......@@ -22,7 +22,7 @@ class DebugAction(argparse.Action):
# Top level argument parsing
p_main = argparse.ArgumentParser()
p_main.add_argument("-", "--version", action="version", version=installsystems.version,
p_main.add_argument("-V", "--version", action="version", version=installsystems.version,
help="show installsystems version")
p_main.add_argument('-d', "--debug", action=DebugAction, nargs=0,
help="active debug mode")
......@@ -35,12 +35,12 @@ p_main.add_argument("-D", "--data-path", dest="data_path", type=str, default=Non
p_main.add_argument("-C", "--cache-path", dest="cache_path", type=str,
default="/var/cache/isinstall",
help="local cache repository path")
p_main.add_argument("-V", "--image-version", dest="image_version", type=int, default=None,
p_main.add_argument("-v", "--image-version", dest="image_version", type=int, default=None,
help="specific image version")
p_main.add_argument("image_name", type=str,
help="image to install")
p_main.add_argument('-u', "--update", action="store_true", dest="update", default=False,
help="update repository cache")
p_main.add_argument("image_name", type=str,
help="image to install (path or name)")
# program entry point
try:
......
......@@ -50,7 +50,7 @@ def delete(options):
# Top level argument parsing
p_main = argparse.ArgumentParser()
p_main.add_argument("-v", "--version", action="version", version=installsystems.version,
p_main.add_argument("-V", "--version", action="version", version=installsystems.version,
help="show installsystems version")
p_main.add_argument('-d', "--debug", action=DebugAction, nargs=0,
help="active debug mode")
......
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