Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
2f548dd9
Commit
2f548dd9
authored
Apr 06, 2015
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix help for jadx-gui, improve code
parent
f715d6ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
JadxCLIArgs.java
jadx-cli/src/main/java/jadx/cli/JadxCLIArgs.java
+14
-13
No files found.
jadx-cli/src/main/java/jadx/cli/JadxCLIArgs.java
View file @
2f548dd9
...
...
@@ -8,7 +8,9 @@ import java.io.File;
import
java.io.PrintStream
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -132,28 +134,27 @@ public class JadxCLIArgs implements IJadxArgs {
out
.
println
(
"options:"
);
List
<
ParameterDescription
>
params
=
jc
.
getParameters
();
Map
<
String
,
ParameterDescription
>
paramsMap
=
new
LinkedHashMap
<
String
,
ParameterDescription
>(
params
.
size
());
int
maxNamesLen
=
0
;
for
(
ParameterDescription
p
:
params
)
{
paramsMap
.
put
(
p
.
getParameterized
().
getName
(),
p
);
int
len
=
p
.
getNames
().
length
();
if
(
len
>
maxNamesLen
)
{
maxNamesLen
=
len
;
}
}
Field
[]
fields
=
this
.
getClass
().
getDeclaredFields
();
Field
[]
fields
=
JadxCLIArgs
.
class
.
getDeclaredFields
();
for
(
Field
f
:
fields
)
{
for
(
ParameterDescription
p
:
params
)
{
String
name
=
f
.
getName
();
if
(
name
.
equals
(
p
.
getParameterized
().
getName
()))
{
StringBuilder
opt
=
new
StringBuilder
();
opt
.
append
(
' '
).
append
(
p
.
getNames
());
addSpaces
(
opt
,
maxNamesLen
-
opt
.
length
()
+
2
);
opt
.
append
(
"- "
).
append
(
p
.
getDescription
());
out
.
println
(
opt
.
toString
());
break
;
}
String
name
=
f
.
getName
();
ParameterDescription
p
=
paramsMap
.
get
(
name
);
if
(
p
==
null
)
{
continue
;
}
StringBuilder
opt
=
new
StringBuilder
();
opt
.
append
(
' '
).
append
(
p
.
getNames
());
addSpaces
(
opt
,
maxNamesLen
-
opt
.
length
()
+
2
);
opt
.
append
(
"- "
).
append
(
p
.
getDescription
());
out
.
println
(
opt
);
}
out
.
println
(
"Example:"
);
out
.
println
(
" jadx -d out classes.dex"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment