Skip to main content

Source code revision

svn

summary: - Added more unit tests. - Discovered an anomaly that makes '-' an invalid character for an option name. This is sad but true.
revision: 27685
author: km
date: 2009-06-03 06:22:42 UTC (7 years)
message: - Added more unit tests.
- Discovered an anomaly that makes '-' an invalid character for an option name. This is sad but true.
If '-' is allowed in an option name, an option named --no-lines is ambiguous in that it can
either mean a long boolean option named "lines" negated (i.e. a boolean option --lines=false) or
it can mean a non-boolean option whose value is specified as next argument (e.g. --no-lines 203).
- Made the Regex's stricter for the same.

Unit tests are a must.
Change Path Actions
M branches/asadmin/v3/admin/cli/src/main/java/org/glassfish/enterprise/admin/ncli/ParseUtilities.java
M branches/asadmin/v3/admin/cli/src/test/java/org/glassfish/enterprise/admin/ncli/ParseUtilitiesTest.java
 
 
Close
loading
Please Confirm
Close