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

exception in java -cp "Slicer4J/target/slicer4j-jar-with-dependencies.jar:Slicer4J/target/lib/*" ca.ubc.ece.resess.slicer.dynamic.slicer4j.Slicer -h #21

Closed
soneyahossain opened this issue Apr 13, 2022 · 2 comments

Comments

@soneyahossain
Copy link

when I run this usage command java -cp "Slicer4J/target/slicer4j-jar-with-dependencies.jar:Slicer4J/target/lib/*" ca.ubc.ece.resess.slicer.dynamic.slicer4j.Slicer -h, it throws exception

slicer4j/Slicer4J$ java -cp "Slicer4J/target/slicer4j-jar-with-dependencies.jar:Slicer4J/target/lib/*" ca.ubc.ece.resess.slicer.dynamic.slicer4j.Slicer -h
usage: java -jar Slicer4j/target/slicer4j-jar-with-dependencies.jar
-ctrl,--Control-only Track control dependence only
-d,--debug Enable debug
-data,--data-only Track data-flow dependence only
-f,--framework Path to folder with extra framework
methods
-fw,--forward-slice-position starting statement for the forward
slice (for chopping)
-h,--help Display this help and exit
-j,--jar jar path
-lc,--logger-classes logger classes jar
-m,--mode Tool mode: i for instrument, g to
produce the dynamic control flow
graph, s to slice
-o,--outDir Output directory
-once,--once Slice one step only
-sd,--stub-droid Location of the StubDroid summaries
-sl,--static-log Static-log file path
-sp,--slice-position starting statement for the slice
-sv,--slice-variables dash-joined list of starting
variables to slice from
-t,--trace Execution trace
-tw,--taint-wrapper Location of the FlowDroid's
taint-wrapper list
usage: java -jar Slicer4j/target/slicer4j-jar-with-dependencies.jar
-ctrl,--Control-only Track control dependence only
-d,--debug Enable debug
-data,--data-only Track data-flow dependence only
-f,--framework Path to folder with extra framework
methods
-fw,--forward-slice-position starting statement for the forward
slice (for chopping)
-h,--help Display this help and exit
-j,--jar jar path
-lc,--logger-classes logger classes jar
-m,--mode Tool mode: i for instrument, g to
produce the dynamic control flow
graph, s to slice
-o,--outDir Output directory
-once,--once Slice one step only
-sd,--stub-droid Location of the StubDroid summaries
-sl,--static-log Static-log file path
-sp,--slice-position starting statement for the slice
-sv,--slice-variables dash-joined list of starting
variables to slice from
-t,--trace Execution trace
-tw,--taint-wrapper Location of the FlowDroid's
taint-wrapper list
Exception in thread "main" ca.ubc.ece.resess.slicer.dynamic.core.exceptions.InvalidCommandsException: Invalid commands
at ca.ubc.ece.resess.slicer.dynamic.slicer4j.Slicer.throwParseException(Slicer.java:422)
at ca.ubc.ece.resess.slicer.dynamic.slicer4j.Slicer.main(Slicer.java:230)

@soneyahossain
Copy link
Author

also I think it is printing everything twice

@khaled-e-a
Copy link
Collaborator

Thank you for pointing this out, fixed in latest commit.

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

No branches or pull requests

2 participants