CmtCommand

coursemgmt.core.cli.CmtCommand
abstract class CmtCommand[T](using parser: Parser[T], help: Help[T]) extends Command[T]

Attributes

Graph
Supertypes
class Command[T]
class CaseApp[T]
class Object
trait Matchable
class Any
Known subtypes
class CmtcCommand[T]

Members list

Value members

Concrete methods

override def error(message: Error): Nothing

Attributes

Definition Classes
CaseApp

Inherited methods

def complete(args: Seq[String], index: Int): List[CompletionItem]

Attributes

Inherited from:
CaseApp
def completer: Completer[T]

Attributes

Inherited from:
CaseApp
def ensureNoDuplicates(): Unit

Attributes

Inherited from:
CaseApp
def exit(code: Int): Nothing

Attributes

Inherited from:
CaseApp
def expandArgs(args: List[String]): List[String]

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 '@ ' with the contents of that file where each line in the file becomes a distinct argument. To enable this behavior, override this method as shown below.

Attributes

Example
import caseapp.core.parser.PlatformArgsExpander
override def expandArgs(args: List[String]): List[String]
= PlatformArgsExpander.expand(args)
Inherited from:
CaseApp
def fullHelpAsked(progName: String): Nothing

Attributes

Inherited from:
CaseApp
def group: String

Attributes

Inherited from:
Command
def hasFullHelp: Boolean

Attributes

Inherited from:
CaseApp
def hasHelp: Boolean

Attributes

Inherited from:
CaseApp
def helpAsked(progName: String, maybeOptions: Either[Error, T]): Nothing

Attributes

Inherited from:
CaseApp
def helpFormat: HelpFormat

Attributes

Inherited from:
CaseApp
def hidden: Boolean

Attributes

Inherited from:
Command
def ignoreUnrecognized: Boolean

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
def main(progName: String, args: Array[String]): Unit

Attributes

Inherited from:
CaseApp
def main(args: Array[String]): Unit

Attributes

Inherited from:
CaseApp
def name: String

Attributes

Inherited from:
Command
def nameFormatter: Formatter[Name]

Attributes

Inherited from:
CaseApp
def names: List[List[String]]

Attributes

Inherited from:
Command
def run(options: T, remainingArgs: RemainingArgs): Unit

Attributes

Inherited from:
CaseApp

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

Inherited from:
CaseApp
def usageAsked(progName: String, maybeOptions: Either[Error, T]): Nothing

Attributes

Inherited from:
CaseApp

Inherited fields

lazy val finalHelp: Help[_]

Attributes

Inherited from:
CaseApp

Implicits

Inherited implicits

implicit val messages: Help[T]

Attributes

Inherited from:
CaseApp
implicit val parser0: Parser[T]

Attributes

Inherited from:
CaseApp