-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Feature]: Improve args input #220
Comments
Check warning on method that used when parsing multiple positional args - https://docs.rs/clap/latest/clap/builder/struct.Arg.html#method.num_args
|
And this issue is not related to clap cli parsing, but more to clap's way of showing tips. UPD: |
in dd2fe3e added warning when file is not found, should I also set default log level to |
I think there's no need to do so for normal users. |
Then we should add to #200 note that if any error is occurred, user need to consult the help menu. Some lossy codecs can accept quality, lossless not. For reference, lossy codecs - mozjpeg, regular jpeg, avif and webp. Other doesn't have |
Agree. Besides, I wonder where would And, maybe the help info should note some Key Content that users should pay attention to and should be emphasized. e.g. Is there a way to implement infos with this display style? |
In my option, just panic!() or give the error info and exit is enough. If users add the -q option for lossless codec. |
Description
This command could run successfully
./_rimage.exe moz 1717128900569_u.jpg -q 90 -s _update
But this can't, because
error: unexpected argument '-q' found
tip: to pass '-q' as a value, use '-- -q'
./_rimage.exe png 1717128900569_u.jpg -q 90 -s _update
Problem or Motivation
Some of the command would like to use
-- -q
rather than-q
for example, and should be improved.Expected behavior
Run successfully
Alternatives Considered
It seemed that only moz mode would run without errors.
Anything else?
No response
The text was updated successfully, but these errors were encountered: