required options should be arguments #4656

Closed
smoser opened this Issue Oct 12, 2017 · 1 comment

Comments

Projects
None yet
2 participants

smoser commented Oct 12, 2017

Description

The syntax on many commands require a group but make it an option rather than an argument.

$ az group delete -h | tail -n 5
Examples
    Delete a resource group.
        az group delete -n MyResourceGroup

Why isn't that?

$ az group delete MyResourceGroup

Environment summary

Install Method: How did you install the CLI? snap

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.7

OS Version: What OS and version are you using?
Answer here: Ubuntu

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash

@smoser smoser referenced this issue in Azure/azure-sdk-for-python Oct 12, 2017

Closed

required options should be arguments #1527

Contributor

troydai commented Oct 12, 2017

As of now, we do not support the positional argument. The positional argument can cause confusion with multiple levels of subcommand.

Thank you for the feedback.

@troydai troydai closed this Oct 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment