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

[feature] Show options of --log-level instead exception #2140

Closed
yooo1999 opened this issue Apr 4, 2024 · 1 comment
Closed

[feature] Show options of --log-level instead exception #2140

yooo1999 opened this issue Apr 4, 2024 · 1 comment
Assignees
Labels
CLI Issues in jadx-cli module enhancement new feature
Milestone

Comments

@yooo1999
Copy link

yooo1999 commented Apr 4, 2024

Describe your idea

If I put wrong log level
c:\Users\T\Downloads\jadx-1.4.7.305-8f969d4e\bin\jadx.bat --log-level ASDASD

I got exception

ERROR - Process error:
java.lang.IllegalArgumentException: 'ASDASD' is unknown, possible values are: quiet, progress, error, warn, info, debug
        at jadx.cli.JadxCLIArgs$BaseEnumConverter.convert(JadxCLIArgs.java:629)
        at jadx.cli.JadxCLIArgs$BaseEnumConverter.convert(JadxCLIArgs.java:614)
        at com.beust.jcommander.JCommander.convertValue(JCommander.java:1406)
        at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:249)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:951)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:932)
        at com.beust.jcommander.JCommander.parseValues(JCommander.java:762)
        at com.beust.jcommander.JCommander.parse(JCommander.java:368)
        at com.beust.jcommander.JCommander.parse(JCommander.java:347)
        at jadx.cli.JCommanderWrapper.parse(JCommanderWrapper.java:43)
        at jadx.cli.JadxCLIArgs.processArgs(JadxCLIArgs.java:257)
        at jadx.cli.JadxCLI.execute(JadxCLI.java:37)
        at jadx.cli.JadxCLI.main(JadxCLI.java:22)

Instead of that you can simply show the options of log level

@skylot skylot self-assigned this Apr 17, 2024
@skylot skylot added enhancement CLI Issues in jadx-cli module labels Apr 17, 2024
@skylot skylot added this to the TBD milestone Apr 17, 2024
@skylot
Copy link
Owner

skylot commented Apr 20, 2024

Fixed

@skylot skylot closed this as completed Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Issues in jadx-cli module enhancement new feature
Projects
None yet
Development

No branches or pull requests

2 participants