diff options
author | Abdulwasiu Apalowo <abdulwasiuapalowo@gmail.com> | 2022-11-16 08:40:37 +0100 |
---|---|---|
committer | Abdulwasiu Apalowo <abdulwasiuapalowo@gmail.com> | 2023-01-10 14:00:11 +0100 |
commit | 538587eaed333ff83dd5213d8ce884a92328e493 (patch) | |
tree | 9bc07708b0cb533965e2a8553641d03aa51a67f1 | |
parent | 6e98628d0b800c8e029626605957fb0f61358465 (diff) | |
download | libvirt-ci-538587eaed333ff83dd5213d8ce884a92328e493.zip libvirt-ci-538587eaed333ff83dd5213d8ce884a92328e493.tar.gz libvirt-ci-538587eaed333ff83dd5213d8ce884a92328e493.tar.bz2 |
commandline: rename projectopt to update_projectopt
This is to prepare for the introduction of `container_projectopt`
(for container's "--projects" option) and to differentiate
where each one is used
Signed-off-by: Abdulwasiu Apalowo <abdulwasiuapalowo@gmail.com>
-rw-r--r-- | lcitool/commandline.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lcitool/commandline.py b/lcitool/commandline.py index e52cf99..b35fe02 100644 --- a/lcitool/commandline.py +++ b/lcitool/commandline.py @@ -83,8 +83,8 @@ class CommandLine: help="name of the host (taken from inventory OR a new name)", ) - projectsopt = argparse.ArgumentParser(add_help=False) - projectsopt.add_argument( + update_projectopt = argparse.ArgumentParser(add_help=False) + update_projectopt.add_argument( "projects", help="list of projects to consider (accepts globs)", ) @@ -211,7 +211,7 @@ class CommandLine: updateparser = subparsers.add_parser( "update", help="prepare hosts and keep them updated", - parents=[verbosityopt, hostsopt, projectsopt, gitrevopt], + parents=[verbosityopt, hostsopt, update_projectopt, gitrevopt], ) updateparser.set_defaults(func=Application._action_update) @@ -248,14 +248,14 @@ class CommandLine: variablesparser = subparsers.add_parser( "variables", help="generate variables", - parents=[formatopt, targetopt, projectsopt, crossarchopt], + parents=[formatopt, targetopt, update_projectopt, crossarchopt], ) variablesparser.set_defaults(func=Application._action_variables) dockerfileparser = subparsers.add_parser( "dockerfile", help="generate Dockerfile", - parents=[targetopt, projectsopt, crossarchopt, + parents=[targetopt, update_projectopt, crossarchopt, baseopt, layersopt], ) dockerfileparser.set_defaults(func=Application._action_dockerfile) @@ -263,7 +263,7 @@ class CommandLine: buildenvscriptparser = subparsers.add_parser( "buildenvscript", help="generate shell script for build environment setup", - parents=[targetopt, projectsopt, crossarchopt], + parents=[targetopt, update_projectopt, crossarchopt], ) buildenvscriptparser.set_defaults(func=Application._action_buildenvscript) |