Parse command line parameter using Commons CLI in JAVA
Here is an example of parsing command line parameter using Commons CLI in JAVA:
After compiling the program:
You can run:
You can also run:
After compiling the program:
You can run:
java TestCommandLine --window-size 10 -p-value-cutoff 100
You can also run:
java TestCommandLine -w 10 -p 100
Shaojun Xie
Comments
Post a Comment