Skip to content

az vm create: --ssh-key-value docs quite confusing #579

Description

az vm create says:

    --ssh-key-value               : SSH public key or public key file path.

OK I think an argument should either accept a file OR a file contents. Not both. It's unintuitive and opens a clear path to bugs and more discoverability issues. Many CLIs have solved this problem by doing things like

  • If the input string starts with @, then it's a path
  • If the input string is -, read from STDIN
  • ...

Please make this either --ssh-key [path] or --ssh-key-value [value].

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions