Skip to content

Commit feb978d

Browse files
committed
Adding arg types
1 parent 5a903d8 commit feb978d

File tree

2 files changed

+44
-43
lines changed

2 files changed

+44
-43
lines changed

src/azure-cli/azure/cli/command_modules/resource/_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@ def load_arguments(self, _):
535535
c.argument('skip_resource_name_params', action='store_true')
536536
c.argument('skip_all_params', action='store_true')
537537
c.argument('resource_ids', nargs='+', options_list='--resource-ids')
538-
c.argument('export_format', help="The format of the exported template. Allowed values: 'json', 'arm', 'bicep'. Defaults to 'json'.")
538+
c.argument('export_format', arg_type=get_enum_type(['json', 'arm', 'bicep'], default='json'),
539+
help="The format of the exported template.")
539540

540541
with self.argument_context('group create') as c:
541542
c.argument('rg_name', options_list=['--name', '--resource-group', '-n', '-g'],

0 commit comments

Comments
 (0)