资 源 简 介
ArgsInjector takes the pain out of parsing args.md command line parameters for Java command line utilities. It also produces a help for your program. Just annotate the class member variables of your main program class with @Argument and @Switch and ArgsInjector will parse the command line arguments and inject the arguments into those variables.
The arguments can have any primitive or wrapped datatype including String and and String arrays for variable number of arguments. Arguments and switches can be either mandatory or optional. Switches by default get their name from the variable, but can have another name and even a one character alias.
Switches can be in any order. ArgsInjector can also enforce that certain switches are specified together or not specified together.
Finally, ArgsInjector is small, easy to learn to use and with a liberal license. Enjoy!