Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
377 stars 1.18k forks source link

Interactive mode should display help when a group is entered #411

Open JasonRShaver opened 7 years ago

JasonRShaver commented 7 years ago

Using interactive mode should feel fluid, but when exploring the command structure for a service, I don't find the terse nature of the argument exception usage being helpful.

Currently

$ az interactive
az>> monitor
az monitor: error: the following arguments are required: subcommand
usage: az monitor [-h]
                  {alert,metrics,log-profiles,diagnostic-settings,autoscale-settings,activity-log}
                  ...

Desired

az>> monitor
interactive-mode showing help:
    az monitor: Commands to manage Azure Monitor service.

Subgroups:
    activity-log       : Commands to manage activity log.
    alert              : Commands to manage metric-based alert rules.
    autoscale-settings : Commands to manage autoscale settings.
    diagnostic-settings: Commands to manage service diagnostic settings.
    log-profiles       : Commands to manage the log profiles assigned to Azure subscription.
    metrics            : Commands to view Azure resource metrics.
mayurid commented 7 years ago

az monitor from the bash has the same experience. Am I missing something?

yonzhan commented 4 years ago

add feature request.