Skip to content

Commit d8fa8b7

Browse files
committed
fix: use add instead of add_argument
1 parent 696fcd5 commit d8fa8b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/vsc/utils/script_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ def __init__(self, options, config_files=None):
116116
self.parser.config_file_parser(config_files)
117117

118118
for option, (help_str, type_, action, default_value) in options.items():
119-
self.parser.add_argument(f'--{option}', help=help_str, type=type_, action=action, default=default_value)
119+
self.parser.add(f'--{option}', help=help_str, type=type_, action=action, default=default_value)
120120

121121
self.options = self.parser.parse_args()
122122

123123

124-
125124
class ExtendedSimpleOption(ConfigOption):
126125
"""
127126
Extends the SimpleOption class to allow other checks to occur at script prologue and epilogue.

0 commit comments

Comments
 (0)