Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Arguments: 1
-s
Rest: 0
+Errors: 1
+Parameter expected for option -s.
OptionBool: false
OptionCount: 0
OptionString:
Arguments: 1
-a
Rest: 0
+Errors: 1
+Parameter expected for option -a.
OptionBool: false
OptionCount: 0
OptionString:
-e
1
Rest: 0
+Errors: 1
+Unrecognized value for option -e, --enum.
+Expected values are: zero, one, two, tree.
OptionBool: false
OptionCount: 0
OptionString:
print x
end
+var errors = ctx.errors
+if errors.not_empty then
+ print "Errors: {errors.length}"
+ print ctx.errors.join("\n")
+end
+
print "OptionBool: {ob.value}"
print "OptionCount: {oc.value}"
if os.value == null then os.value = ""