Skip to content

Commit

Permalink
test duplicate options
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Oct 9, 2023
1 parent e10df04 commit 721f997
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ final case class CompileOptions(
@HelpMessage("Compile test scope")
@Tag(tags.should)
@Tag(tags.inShortHelp)
test: Boolean = false
test: Boolean = false,

@Group(HelpGroup.Compilation.toString)
@HelpMessage("some option")
@Tag(tags.should)
someOption: Boolean = false,

@Group(HelpGroup.Compilation.toString)
@HelpMessage("duplicate")
@Tag(tags.should)
@Name("someOption")
duplicateOption: Boolean = false
) extends HasSharedOptions
// format: on

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ final case class SharedOptions(
@HelpMessage("Force object wrapper for scripts")
@Tag(tags.experimental)
objectWrapper: Option[Boolean] = None,

@Group(HelpGroup.Compilation.toString)
@HelpMessage("duplicate")
@Tag(tags.should)
@Name("someOption")
duplicateOption: Boolean = false
) extends HasGlobalOptions {
// format: on

Expand Down

0 comments on commit 721f997

Please sign in to comment.