A simple framework for configuring and parsing commandline arguments.
For a demo, see Main.java found here. A run example:
java Main -path "C:/folder" -recursive
Modify the valid options and the valid flags array as you see fit, and try to run the application with different run arguments.