cyberark-conjur-cli icon indicating copy to clipboard operation
cyberark-conjur-cli copied to clipboard

Wrong help screen returned when subcommand is featured

Open sigalsax opened this issue 3 years ago • 0 comments

Summary

A UX bug exists where the wrong help screen is returned when the command consists of the subcommand.

For example: conjur host rotate-api-key k8s-follower will return the main host command instead of the rotate-api-key subcommand helpscreen

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install CLI
  2. Run conjur host rotate-api-key k8s-follower
  3. See wrong help screen

Expected Results

Name:
  rotate-api-key - Rotate a host's API key

Usage:
  conjur [global options] host rotate-api-key [options] [args]

Options:
  -i ID, --id ID  Provide host identifier for which you want to rotate the API key
  -h, --help      Display help screen and exit

Examples:
    conjur host rotate-api-key -i my_apps/myVM		Rotates the API key for host myVM

Actual Results (including error logs, if applicable)

A clear and concise description of what actually did happen.

conjur host rotate-api-key k8s-follower
Error unrecognized arguments: k8s-follower
        
Name:
  host - Manage hosts

Usage:
  conjur [global options] host <subcommand> [options] [args]

Subcommands:
  {rotate-api-key}
    rotate-api-key  Rotate a host's API key

Options:
  -h, --help        Display help screen and exit

See more details in each subcommand's help:
conjur host change-password -h

Reproducible

  • [x] Always
  • [ ] Sometimes
  • [ ] Non-Reproducible

Version/Tag number

CLI 7.0.1

Environment setup

Regular CLI setup on any environment

Additional Information

sigalsax avatar Jul 25 '21 05:07 sigalsax