Skip to content

Use the same format for nested commands #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Conversation

yorinasub17
Copy link
Contributor

If we have nested commands (e.g kubergrunt eks configure), then the help text for the second level is still using the default urfave template. This updates it to use the same one as the app level:

Original:

NAME:
   kubergrunt eks - Helper commands to configure EKS, including setting up operator machines to authenticate with EKS.

USAGE:
   kubergrunt eks command [command options] [arguments...]

COMMANDS:
     configure  Set up kubectl to be able to authenticate with EKS.
     token      Get token for Kubernetes using AWS IAM credential.

OPTIONS:
   --help, -h  show help

Updated:

Usage: kubergrunt eks [--help] command [options] [args]

Helper commands to configure EKS, including setting up operator machines to authenticate with EKS.

Commands:

   configure  Set up kubectl to be able to authenticate with EKS.
   token      Get token for Kubernetes using AWS IAM credential.
   help, h    Shows a list of commands or help for one command

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thx!

@yorinasub17 yorinasub17 merged commit 8b5d2a7 into master Nov 30, 2018
@yorinasub17 yorinasub17 deleted the yori-subcommand-help branch November 30, 2018 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants