Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update help to block argument #389

Merged
merged 2 commits into from
Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions azext_iot/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ def load_arguments(self, _):
validator=mode2_iot_login_handler,
help="This command supports an entity connection string with rights to perform action. "
'Use to avoid session login via "az login". '
"If both an entity connection string and name are provided the connection string takes priority.",
"If both an entity connection string and name are provided the connection string takes priority. "
"Required if --hub-name is not provided.",
arg_group="IoT Hub Identifier"
)
context.argument("resource_group_name", arg_type=resource_group_name_type)
context.argument(
"hub_name", options_list=["--hub-name", "-n"], arg_type=hub_name_type
"hub_name", options_list=["--hub-name", "-n"], arg_type=hub_name_type,
help="IoT Hub name. Required if --login is not provided.",
arg_group="IoT Hub Identifier"
)
context.argument(
"device_id", options_list=["--device-id", "-d"], help="Target Device."
Expand Down