Provide the description of functions command for better usage.
@@ -81,7 +81,15 @@ public class CmdFunctions extends CmdBase {
abstract class BaseCommand extends CliCommand {
@Override
void run() throws Exception {
+ try {
processArguments();
+ } catch (Exception e) {
+ System.err.println(e.getMessage());
+ System.err.println();
+ String chosenCommand = jcommander.getParsedCommand();
+ jcommander.usage(chosenCommand);
+ return;
+ }
runCmd();
}
