Skip to content

Commit

Permalink
Make only-annotated lua inclusion optional
Browse files Browse the repository at this point in the history
Resolves: #54
  • Loading branch information
matshou committed Feb 17, 2021
1 parent 4f27a73 commit b439293
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/io/yooksi/pz/zdoc/cmd/CommandOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,20 @@ final class CommandOptions {
"to exclude classes from document generation")
.required(false).hasArg().argName("list").valueSeparator(' ').build();

static final Option ONLY_ANNOTATED_OPTION =
Option.builder("s").longOpt("only-annotated")
.desc("only include classes that were annotated")
.required(false).build();

static final Options LUA_OPTIONS = new Options();
static final Options JAVA_OPTIONS = new Options();

static
{
LUA_OPTIONS.addOption(clone(INPUT_OPTION))
.addOption(clone(OUTPUT_OPTION))
.addOption(clone(EXCLUDE_CLASS_OPTION));
.addOption(clone(EXCLUDE_CLASS_OPTION))
.addOption(ONLY_ANNOTATED_OPTION);

JAVA_OPTIONS.addOption(clone(INPUT_OPTION))
.addOption(clone(OUTPUT_OPTION))
Expand Down

0 comments on commit b439293

Please sign in to comment.