Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Wrong help screen returned when subcommand is featured #327

Open
1 of 3 tasks
sigalsax opened this issue Jul 25, 2021 · 0 comments
Open
1 of 3 tasks

Wrong help screen returned when subcommand is featured #327

sigalsax opened this issue Jul 25, 2021 · 0 comments

Comments

@sigalsax
Copy link
Contributor

sigalsax commented Jul 25, 2021

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

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

CLI 7.0.1

Environment setup

Regular CLI setup on any environment

Additional Information

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

No branches or pull requests

1 participant