Merge "trivial: Place positional opts last"

This commit is contained in:
Zuul 2023-12-14 16:17:03 +00:00 committed by Gerrit Code Review
commit d09aec3459
1 changed files with 5 additions and 5 deletions

View File

@ -1163,10 +1163,6 @@ class UnsetPort(common.NeutronUnsetCommandWithExtraArgs):
"or ID) (repeat option to unset multiple security groups)"
),
)
parser.add_argument(
'port', metavar="<port>", help=_("Port to modify (name or ID)")
)
parser.add_argument(
'--allowed-address',
metavar='ip-address=<ip-address>[,mac-address=<mac-address>]',
@ -1209,8 +1205,12 @@ class UnsetPort(common.NeutronUnsetCommandWithExtraArgs):
default=False,
help=_("Clear hints for the port."),
)
_tag.add_tag_option_to_parser_for_unset(parser, _('port'))
parser.add_argument(
'port',
metavar="<port>",
help=_("Port to modify (name or ID)"),
)
return parser