Page MenuHomeVyOS Platform

Replace underscores with hyphens in command-line options generated by vyos.opmode
Closed, ResolvedPublic

Description

vyos.opmode.run generates CLI options from function arguments. Function argument names in Python cannot contain hyphens so we use underscores. CLI options, however, are expected to contain hyphens. Since we don't change arguments when we generate options from them, scripts can end up with odd-looking options like --foo_bar.

I believe it's better to make options look like they usuall do in UNIX-like systems and replace all underscores with hyphens.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Internal change (not visible to end users)

Related Objects

Mentioned In
1.3.5