Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding Commands Section #1

Closed
vsnthdev opened this issue Nov 7, 2020 · 3 comments 路 May be fixed by #3
Closed

Hiding Commands Section #1

vsnthdev opened this issue Nov 7, 2020 · 3 comments 路 May be fixed by #3

Comments

@vsnthdev
Copy link

vsnthdev commented Nov 7, 2020

I am making a CLI program where there's only one root command. So, how do I hide the empty commands section? 馃 Here's a picture of the empty commands section, I would like to hide 馃憞
Screenshot 2020-11-07 at 2 11 54 PM

@vsnthdev
Copy link
Author

I'm closing this issue since package isn't maintained anymore.

@corysimmons
Copy link

corysimmons commented Jun 28, 2022

@ahmadawais Pleas re-open/fix this. Basically don't render any sections that are falsy.

This includes the USAGE string (don't render <command> or [option] if they don't exist.

@ahmadawais
Copy link
Owner

I'd accept a PR for this. Thank you! 馃檶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants