Shebang
Attributes
- Graph
-
- Supertypes
-
class ScalaCommand[ShebangOptions]trait CommandHelperstrait NeedsArgvCommandclass Command[ShebangOptions]class CaseApp[ShebangOptions]class Objecttrait Matchableclass AnyShow all
- Self type
-
Shebang.type
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- CommandHelpers
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
Attributes
- Definition Classes
This should be overridden instead of run when extending ScalaCommand.
This should be overridden instead of run when extending ScalaCommand.
Value parameters
- options
-
the command's specific set of options
- remainingArgs
-
arguments remaining after parsing options
Attributes
- Definition Classes
Is that command a MUST / SHOULD / NICE TO have for the Scala runner specification?
Is that command a MUST / SHOULD / NICE TO have for the Scala runner specification?
Attributes
- Definition Classes
Attributes
- Definition Classes
Whether to stop parsing at the first unrecognized argument.
Whether to stop parsing at the first unrecognized argument.
That is, stop parsing at the first non option (not starting with "-"), or the first unrecognized option. The unparsed arguments are put in the args
argument of run
.
Attributes
- Definition Classes
-
CaseApp
Inherited methods
Attributes
- Inherited from:
- RestrictableCommand
The actual sub-command name that was used. If the sub-command name is a list of strings, space is used as the separator. If argvOpt hasn't been defined, it defaults to name.
The actual sub-command name that was used. If the sub-command name is a list of strings, space is used as the separator. If argvOpt hasn't been defined, it defaults to name.
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Returns
-
the actual Scala CLI base runner name, for SIP it is scala otherwise scala-cli
- Inherited from:
- ScalaCommand
Value parameters
- options
-
command-specific T options
Attributes
- Returns
-
Tries to create BuildOptions based on sharedOptions and exits on error. Override to change this behaviour.
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Arguments are expanded then parsed. By default, argument expansion is the identity function. Overriding this method allows plugging in an arbitrary argument expansion logic.
Arguments are expanded then parsed. By default, argument expansion is the identity function. Overriding this method allows plugging in an arbitrary argument expansion logic.
One such expansion logic involves replacing each argument of the form '@
Attributes
- Example
-
import caseapp.core.parser.PlatformArgsExpander override def expandArgs(args: List[String]): List[String] = PlatformArgsExpander.expand(args)
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Returns
-
the actual Scala CLI runner name which was run
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- Command
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Definition Classes
-
ScalaCommand -> Command
- Inherited from:
- ScalaCommand
Whether to ignore unrecognized arguments.
Whether to ignore unrecognized arguments.
That is, if there are unrecognized arguments, the parsing still succeeds. The unparsed arguments are put in the args
argument of run
.
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Definition Classes
- Inherited from:
- ScalaCommand
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- ScalaCommand
Print scalac
output if passed options imply no inputs are necessary and raw scalac
output is required instead. (i.e. --scalac-option -help
)
Print scalac
output if passed options imply no inputs are necessary and raw scalac
output is required instead. (i.e. --scalac-option -help
)
Value parameters
- options
-
command options
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- Command
Attributes
- Definition Classes
- Inherited from:
- RestrictableCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- CaseApp
Attributes
- Returns
-
the actual Scala CLI program name which was run
- Inherited from:
- ScalaCommand
This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.
This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.
Attributes
- Definition Classes
-
ScalaCommand -> CaseApp
- Inherited from:
- ScalaCommand
Attributes
- Definition Classes
- Inherited from:
- ScalaCommand
Attributes
- Definition Classes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Inherited fields
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- CaseApp
Attributes
- Inherited from:
- ScalaCommand
Attributes
- Inherited from:
- ScalaCommand
Givens
Inherited givens
Attributes
- Inherited from:
- ScalaCommand
Implicits
Inherited implicits
Attributes
- Inherited from:
- CommandHelpers
Attributes
- Inherited from:
- CaseApp