-
Notifications
You must be signed in to change notification settings - Fork 924
Review logic for getting CLI arguments #3310
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
Comments
It would be great if we could try out whether |
Hello! I am working on it, porting CLI code to |
It looks like I am spending a lot of effort in order to make help and usage messages generated by Do you think it's worth the effort? Or maybe we should keep Now, after all my customizations the help messages look almost the same (with some stylistic differences). Please see examples below. Old one:
New one (with some tinkering):
More idiomatic
@scampi @topecongiro What do you think? |
@sphynx Thank you for your work! I think we can just use the original |
@topecongiro Ok, thank you for the feedback! |
Should this issue be closed since #3569 has been merged? |
In #2694 it seems that our handling of the
env::args()
is problematic in some environments like windows. The first item is skipped which is usually the executable name, but not always:Since this logic is used in the binaries shipped with rustfmt, it could be better to use another library like
clap
where that is not needed (I think).The text was updated successfully, but these errors were encountered: