resess / Slicer4J

Slicer4J is an accurate, low-overhead dynamic slicer for Java programs.
MIT License
39 stars 17 forks source link

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 closed 2 years ago

soneyahossain commented 2 years ago

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 commented 2 years ago

also I think it is printing everything twice

khaled-e-a commented 2 years ago

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