summaryrefslogtreecommitdiff
path: root/src/op_mode/image_manager.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-27 21:13:22 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-12-16 20:37:10 -0600
commitbbbe388b437b03427e5f80a0f955b6f2759ea946 (patch)
tree7fa5f008acd85cb559d87c5875c27b9537c0c073 /src/op_mode/image_manager.py
parente07b24075561842e35df4e11a00f17960c0f9fff (diff)
downloadvyos-1x-bbbe388b437b03427e5f80a0f955b6f2759ea946.tar.gz
vyos-1x-bbbe388b437b03427e5f80a0f955b6f2759ea946.zip
image-tools: T5751: normalize args using hyphen instead of underscore
(cherry picked from commit bb578a1cab177e8cee6e4d02144d21387ba13a93)
Diffstat (limited to 'src/op_mode/image_manager.py')
-rwxr-xr-xsrc/op_mode/image_manager.py4
1 files changed, 2 insertions, 2 deletions
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