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

Make --help default behavior? #1

Closed
snoyberg opened this issue Apr 16, 2015 · 6 comments
Closed

Make --help default behavior? #1

snoyberg opened this issue Apr 16, 2015 · 6 comments
Assignees

Comments

@snoyberg
Copy link
Member

I've noticed this on a number of projects in the past. Would it be possible to modify the library so that running an executable with no arguments is the same as --help? This seems like behavior people would like, e.g. when running stackage.

Pinging @chrisdone @DanBurton

@chrisdone
Copy link
Contributor

I'd agree. The default optparse output is kind of useless.

@DanBurton
Copy link
Contributor

I presume you mean: when the arg parse fails because at least one arg is
mandatory. (If running with no args is a valid invocation, then the help
text should not interfere.)

On Thursday, April 16, 2015, Chris Done notifications@github.com wrote:

I'd agree. The default optparse output is kind of useless.


Reply to this email directly or view it on GitHub
#1 (comment).

-- Dan Burton

@snoyberg
Copy link
Member Author

Yes, that's what I meant. I discussed that with Chris, but didn't update the issue to clarify.

@snoyberg
Copy link
Member Author

Good catch :)

chrisdone added a commit that referenced this issue Apr 17, 2015
@chrisdone
Copy link
Contributor

Done in 5f73bcc.

@snoyberg
Copy link
Member Author

LGTM, please release to Hackage.

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

3 participants