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

[Question] What is a feasibility of automatic help about default options? #18

Closed
fadeevab opened this issue Mar 28, 2020 · 3 comments
Closed

Comments

@fadeevab
Copy link
Contributor

Hi!

I was thinking about automatic print of the defaults to the help message, like kingpin and clap do ("-f, --file file [default: ~/path/to]"). After messing around argh code I realized that it would be not really trivial to make a PR... or trivial? What is your ideology about printing defaults to help?

Of course, the easy way is just to manually add them to the description, still...

Thank you!

@fadeevab
Copy link
Contributor Author

fadeevab commented Apr 1, 2020

@benbrittain I'm thinking about PR, does it have sense to try?

@benbrittain
Copy link
Contributor

I'm supportive of any changes that make it easier to use! I am prioritizing code generation size though, so if it bloats that too much we'll have to think up another solution.

@fadeevab
Copy link
Contributor Author

fadeevab commented Apr 2, 2020

@benbrittain Ok, cool, thank you for the answer! I think the biggest problem there would be to figure out how this "quoted!" pseudo-code in TokenStreams should be re-mixed in a proper way, so the code still stays readable and reasonable:)

@fadeevab fadeevab closed this as completed Apr 2, 2020
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

2 participants