Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
+Errors: 1
+Parameter expected for option -s.
OptionBool: false
OptionCount: 0
OptionString:
OptionBool: false
OptionCount: 0
OptionString:
+Errors: 1
+Parameter expected for option -a.
OptionBool: false
OptionCount: 0
OptionString:
OptionBool: false
OptionCount: 0
OptionString:
+Errors: 1
+Unrecognized value for option -e, --enum.
+Expected values are: zero, one, two, tree.
OptionBool: false
OptionCount: 0
OptionString:
OptionBool: false
OptionCount: 0
OptionString:
+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 = ""
print "OptionBool: {ob.value}"
print "OptionCount: {oc.value}"
if os.value == null then os.value = ""