Changeset 836 for trunk/src/sce/codehelper/StaticCommandsCodeHelper.java
- Timestamp:
- 09/04/10 13:04:29 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sce/codehelper/StaticCommandsCodeHelper.java
r771 r836 134 134 if (commandUsage.substring(argumentEnd).trim().startsWith("]")) optional = true; 135 135 136 boolean secondOptional = false; 137 if (optional) { 138 if (commandUsage.substring(0, argumentStart-1).trim().endsWith("]")) { 139 secondOptional = true; 140 command.setUsage(commandUsage.replaceAll("\\[@" + argumentName + "@\\]", "")); 141 continue; 142 } 143 } 144 136 145 // create the argument 137 CHCommandArgument argument = new CHCommandArgument(argumentName, optional );146 CHCommandArgument argument = new CHCommandArgument(argumentName, optional, secondOptional); 138 147 argument.setHint(argumentXML.getAttribute("hint")); 139 148
![(please configure the [header_logo] section in trac.ini)](http://jlatexeditor.endrullis.de/chrome/site/logo.png)