Skip to content

Commit

Permalink
do not output hidden params
Browse files Browse the repository at this point in the history
  • Loading branch information
mcred committed Aug 3, 2023
1 parent d4afc10 commit e3402aa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ private void writeHeaderToFile(BufferedWriter writer, String uCommandName) throw
private void writeArgumentsToFile(BufferedWriter writer, Map<String, CommandArgumentDefinition<?>> arguments, String indent) throws IOException {
int i=1;
for (Map.Entry<String, CommandArgumentDefinition<?>> entry : arguments.entrySet()) {
if (entry.getValue().getHidden()) {
continue;
}
String optional = entry.getValue().isRequired() ? "" : " optional ";
String required = entry.getValue().isRequired() ? "*required* " : "";
String tab = entry.getValue().isRequired() ? " " : "";
Expand Down

0 comments on commit e3402aa

Please sign in to comment.