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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design: how should we display subcommands? #8

Open
yoshuawuyts opened this issue Jul 19, 2018 · 1 comment
Open

Design: how should we display subcommands? #8

yoshuawuyts opened this issue Jul 19, 2018 · 1 comment

Comments

@yoshuawuyts
Copy link
Collaborator

I'm not sure how we should be handling subcommands. Should we create separate man pages? Should we create a single man page? It'd be super useful to gather prior art so we can figure out some of the options we have!

Ideally we could find a default that works for most people, and start by implementing that.

Let's start by looking at how git(1) does it.

Example: Git

Git create separate man pages for its subcommands. The git man page has GIT COMMANDS and HIGH LEVEL COMMANDS sections listing these commands.

Each subcommand has its own page, like you'd expect from any other man page.

Screenshots

git(1) commands section

2018-07-19-202102_1920x1080

git-add(1) man page

2018-07-19-202457_1920x1080

@yoshuawuyts
Copy link
Collaborator Author

Right now I'm thinking separate man pages is the right way to go. It's the way cargo does it too, so there's at least some established prior art!

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

No branches or pull requests

1 participant