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

Support --help for crystal eval #3224

Closed
wants to merge 3 commits into from

Conversation

amitsaha
Copy link

@amitsaha amitsaha commented Sep 1, 2016

Fix for #3196

Verified

This commit was signed with the committer’s verified signature.
wyattjoh Wyatt Johnson
@amitsaha amitsaha changed the title Fix for #3196: Support --help for crystal eval Support --help for crystal eval Sep 1, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@bcardiff
Copy link
Member

bcardiff commented Sep 5, 2016

Hi @amitsaha , the code is fine.

All other help commands that have --help are because there are options or subcommands. So eventually, for consistency, other --help should be added.

I see not cons on adding this. But /etc/completion.bash and /etc/completion.zsh need to be updated also in order to update this IMO.

Another alternative for this might be to contribute to https://crystal-lang.org/docs/using_the_compiler/index.html . Maybe there is more chance for people to learn how to use eval there than in --help. Just my 2 cents.

@amitsaha
Copy link
Author

amitsaha commented Sep 5, 2016

Thanks @bcardiff for taking a look. Note that you currently get an error when you try crystal eval --help which is my main motivation for fixing this. I will do the change to the completion files and update the PR well as update the doc in a separate PR.

Verified

This commit was signed with the committer’s verified signature.
wyattjoh Wyatt Johnson
@amitsaha
Copy link
Author

Can I get some help with the zsh completion?

@asterite
Copy link
Member

@amitsaha Would you mind if I implement this? Adding --help for a command that doesn't have any options doesn't add much to the command, so I'll make it possible to pass --release, -s and others.

@amitsaha
Copy link
Author

Sure. Go ahead.

Note that I was not trying to implement --help because it would add
anything. But the fact that --help would throw an error is a bug. That is
what I aimed to fix.

On 15 Sep 2016 11:26 pm, "Ary Borenszweig" notifications@github.com wrote:

@amitsaha https://github.com/amitsaha Would you mind if I implement
this? Adding --help for a command that doesn't have any options doesn't
add much to the command, so I'll make it possible to pass --release, -s
and others.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3224 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfSVmlITEQj3CiU0CGc_WssyqV6M45Bks5qqUeOgaJpZM4JySpQ
.

@asterite asterite closed this in df63f69 Sep 27, 2016
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

Successfully merging this pull request may close these issues.

None yet

3 participants