cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.95k stars 332 forks source link

fixed issues 445, add a method 'addSubcommand' #522

Open Asriter opened 3 years ago

Asriter commented 3 years ago

I fixed the issues #445 and add a method named 'addSubcommand'. It can add a subcommand for the command added by user but the defult command. And the command like 'myprogram command subcommand --flag1 --flag2' can run successfully by calling this method