From a719e44b81dd57dbd61fbcab82fa5c0c5f83e649 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Thu, 26 May 2011 13:56:10 +0200 Subject: [PATCH] installsystems version is option -V not -v --- bin/isimage | 2 +- bin/isinstall | 8 ++++---- bin/isrepo | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/isimage b/bin/isimage index f9bc865..7686381 100755 --- a/bin/isimage +++ b/bin/isimage @@ -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") diff --git a/bin/isinstall b/bin/isinstall index 87c7161..f864495 100755 --- a/bin/isinstall +++ b/bin/isinstall @@ -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: diff --git a/bin/isrepo b/bin/isrepo index 23b59ac..70082da 100755 --- a/bin/isrepo +++ b/bin/isrepo @@ -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") -- GitLab