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

Allow --help --verbose #33

Closed
denisdefreyne opened this issue May 15, 2014 · 8 comments
Closed

Allow --help --verbose #33

denisdefreyne opened this issue May 15, 2014 · 8 comments
Labels

Comments

@denisdefreyne
Copy link
Owner

Currently, --help --verbose does not print the help verbosely, because both options are independent and do not know about each other.

Not sure how to solve this.

@osg
Copy link

osg commented Feb 7, 2015

Alternative solution is to write the five extra commands and eliminate the need for --verbose.

@denisdefreyne
Copy link
Owner Author

I’m assuming you mean the five extra commands from nanoc. They’re hidden on purpose; they’re deprecated so they shouldn’t be shown by default.

@osg
Copy link

osg commented Feb 7, 2015

Is there confusion in removing the line (5 hidden commands omitted; show them with --verbose).

If they are deprecated, why do I need to know about them. Migration information could go into a migration guide or an upgrade guide.

@denisdefreyne
Copy link
Owner Author

Is there confusion in removing the line (5 hidden commands omitted; show them with --verbose).

That is possible, but it doesn’t solve the problem that --help --verbose doesn’t work as expected, though.

If they are deprecated, why do I need to know about them.

That’s why they’re hidden. Perhaps the message could be updated to say that they are deprecated.

@osg
Copy link

osg commented Feb 7, 2015

I personally would rather not see them at all. That said, I am not upgrading from one version to another at the moment. When I do, I will first check the Upgrade guide rather than the list of commands.

@denisdefreyne
Copy link
Owner Author

They won’t be removed from nanoc 3.x because nanoc follows semantic versioning.

@osg
Copy link

osg commented Feb 7, 2015

+1 for that rationale.

@denisdefreyne
Copy link
Owner Author

Closing, as I don’t believe that there is any reasonable way that --help --verbose can print the help verbosely. Cri handles the options in a certain order; --help being evaluated after --verbose is odd (and what about other cases, such as --help --version?).

help --verbose will still work.

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

No branches or pull requests

2 participants