Skip to content

Commit d09aec3

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "trivial: Place positional opts last"
2 parents c75a5a8 + be3d438 commit d09aec3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openstackclient/network/v2/port.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,10 +1163,6 @@ def get_parser(self, prog_name):
11631163
"or ID) (repeat option to unset multiple security groups)"
11641164
),
11651165
)
1166-
1167-
parser.add_argument(
1168-
'port', metavar="<port>", help=_("Port to modify (name or ID)")
1169-
)
11701166
parser.add_argument(
11711167
'--allowed-address',
11721168
metavar='ip-address=<ip-address>[,mac-address=<mac-address>]',
@@ -1209,8 +1205,12 @@ def get_parser(self, prog_name):
12091205
default=False,
12101206
help=_("Clear hints for the port."),
12111207
)
1212-
12131208
_tag.add_tag_option_to_parser_for_unset(parser, _('port'))
1209+
parser.add_argument(
1210+
'port',
1211+
metavar="<port>",
1212+
help=_("Port to modify (name or ID)"),
1213+
)
12141214

12151215
return parser
12161216

0 commit comments

Comments
 (0)