summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-27 21:13:22 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-11-27 21:13:22 -0600
commitbb578a1cab177e8cee6e4d02144d21387ba13a93 (patch)
treef399b38bb7fa987b541ca8c947697c429478af16 /src/op_mode
parent5f575360b0c996187e7f05cccc5caff6a658544d (diff)
downloadvyos-1x-bb578a1cab177e8cee6e4d02144d21387ba13a93.tar.gz
vyos-1x-bb578a1cab177e8cee6e4d02144d21387ba13a93.zip
image-tools: T5751: normalize args using hyphen instead of underscore
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/image_installer.py2
-rwxr-xr-xsrc/op_mode/image_manager.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index aa4cf301b..380393a34 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -728,7 +728,7 @@ def parse_arguments() -> Namespace:
required=True,
help='action to perform with an image')
parser.add_argument(
- '--image_path',
+ '--image-path',
help='a path (HTTP or local file) to an image that needs to be installed'
)
# parser.add_argument('--image_new_name', help='a new name for image')
diff --git a/src/op_mode/image_manager.py b/src/op_mode/image_manager.py
index e4b2f4833..dcbd290c9 100755
--- a/src/op_mode/image_manager.py
+++ b/src/op_mode/image_manager.py
@@ -172,10 +172,10 @@ def parse_arguments() -> Namespace:
required=True,
help='action to perform with an image')
parser.add_argument(
- '--image_name',
+ '--image-name',
help=
'a name of an image to add, delete, install, rename, or set as default')
- parser.add_argument('--image_new_name', help='a new name for image')
+ parser.add_argument('--image-new-name', help='a new name for image')
args: Namespace = parser.parse_args()
# Validate arguments
if args.action == 'rename' and (not args.image_name or