@@ -31,6 +31,7 @@ namespace cppwinrt
3131 { " base" , 0 , 0 , {}, " Generate base.h unconditionally" },
3232 { " optimize" , 0 , 0 , {}, " Generate component projection with unified construction support" },
3333 { " help" , 0 , option::no_max, {}, " Show detailed help with examples" },
34+ { " ?" , 0 , option::no_max, {}, {} },
3435 { " library" , 0 , 1 , " <prefix>" , " Specify library prefix (defaults to winrt)" },
3536 { " filter" }, // One or more prefixes to include in input (same as -include)
3637 { " license" , 0 , 0 }, // Generate license comment
@@ -252,7 +253,7 @@ Where <spec> is one or more of:
252253
253254 reader args{ argc, argv, options };
254255
255- if (!args || args.exists (" help" ))
256+ if (!args || args.exists (" help" ) || args. exists ( " ? " ) )
256257 {
257258 throw usage_exception{};
258259 }
@@ -366,7 +367,7 @@ Where <spec> is one or more of:
366367 result = 1 ;
367368 }
368369
369- w.flush_to_console ();
370+ w.flush_to_console (result == 0 );
370371 return result;
371372 }
372373}
0 commit comments