I'm using the Apache Commons CLI to handle command line arguments in Java.
I've declared the a
and b
options and I'm able to access the value using CommandLine.getOptionValue()
.
Usage: myapp [OPTION] [DIRECTORY]
Options:
-a Option A
-b Option B
How do I declare and access the DIRECTORY variable?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…