diff --git a/modules/cli/src/main/scala/scala/cli/commands/compile/CompileOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/compile/CompileOptions.scala index b9751fda95..48862afc28 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/compile/CompileOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/compile/CompileOptions.scala @@ -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 diff --git a/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala index 7ed8169786..07db2dcf1e 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala @@ -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