Skip to content

Commit 2bea4f6

Browse files
committed
fix custom command help message
1 parent 2c6366b commit 2bea4f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/portal/azext_portal/custom.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,18 @@ def pre_operations(self):
9191

9292
class Import(_Create):
9393

94+
def __init__(self, loader=None, cli_ctx=None, callbacks=None, **kwargs):
95+
super().__init__(loader, cli_ctx, callbacks, **kwargs)
96+
self.help['short-summary'] = 'Import a dashboard from a JSON file.'
97+
self.help['examples'] = ''
98+
9499
@classmethod
95100
def _build_arguments_schema(cls, *args, **kwargs):
96101
args_schema = super()._build_arguments_schema(*args, **kwargs)
97102
args_schema.input_path = AAZFileArg(
98103
options=['--input-path'],
99104
arg_group="Properties",
100-
help='The path to the dashboard properties JSON file. If provided, no other Properties arguments should be specified.'
105+
help='The path to the dashboard JSON file.'
101106
)
102107
args_schema.lenses._registered = False
103108
args_schema.metadata._registered = False

0 commit comments

Comments
 (0)