File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,13 +285,14 @@ void handle() throws IOException {
285285 boolean help = parser .getBoolean ("-h" , "--help" );
286286 if (help ) {
287287 Help .INSTANCE .showHelp (parser .command (), this );
288- }
289- try {
290- handler .handle (this );
291- } catch ($ .Break b ) {
292- throw b ;
293- } catch (Exception e ) {
294- console .println ("Error: " + e .getMessage ());
288+ } else {
289+ try {
290+ handler .handle (this );
291+ } catch ($ .Break b ) {
292+ throw b ;
293+ } catch (Exception e ) {
294+ console .println ("Error: " + e .getMessage ());
295+ }
295296 }
296297 }
297298
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ public CommanderClassMetaInfo superType(Type type) {
7979 }
8080
8181 public CommanderClassMetaInfo addFieldOptionAnnotationInfo (FieldOptionAnnoInfo info ) {
82+ info .paramName (info .fieldName ());
8283 fieldOptionAnnoInfoMap .put (info .fieldName (), info );
8384 return this ;
8485 }
You can’t perform that action at this time.
0 commit comments