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

Having a help attribute for each command #43

Open
faraazahmad opened this issue Nov 29, 2017 · 3 comments
Open

Having a help attribute for each command #43

faraazahmad opened this issue Nov 29, 2017 · 3 comments

Comments

@faraazahmad
Copy link
Owner

Either we could implement the help for the command using --help parameter or we could make something more detailed, a tiny bit less detailed than man pages, something similar to this (Elixir REPL) would be really nice.
screenshot from 2017-11-29 18-48-09

Your feedback is highly appreciated

@pknight24
Copy link
Contributor

I manage an open source project written in Rust, and we use a specific package that organizes the 'help' flag for each terminal command that we wrote. This makes life much easier than rewritting the 'help' output entirely for each command. For shellrb, I was thinking that we could have a Help class in a file help.rb, that keeps track of a command's usage, different parameters that it can take, maybe even the commands version number and author. This would also force for a uniform style for each commands 'help' output, which would make everything much more readable. I would be willing to work on this after I finish the 'touch' command.

@faraazahmad
Copy link
Owner Author

faraazahmad commented Nov 29, 2017

That seems like a nice idea! I was thinking of a similar thing. I was thinking to organise each package into its own folder and have its meta data in a yaml file, like basic usage, examples etc.

But that would make for a lot of work. Your idea sounds doable in a fair amount of time.

that keeps track of a command's usage

^ I didn't quite understand how

@pknight24
Copy link
Contributor

Sorry, I worded that a bit weird. I just meant that we could give a couple examples of how to use the command.

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

No branches or pull requests

2 participants