CommandConfiguration
The configuration for a command.
struct CommandConfiguration
Creating a Configuration
init(commandName:abstract:usage:discussion:version:shouldDisplay:subcommands:defaultSubcommand:helpNames:aliases:)
Customizing the Help Screen
var abstract: String
A one-line description of this command.
var discussion: String
A longer description of this command, to be shown in the extended help display.
var usage: String?
A customized usage string to be shown in the help display and error messages.
var helpNames: NameSpecification?
Flag names to be used for help.
Declaring Subcommands
var subcommands: [ParsableCommand.Type]
An array of the types that define subcommands for this command.
var defaultSubcommand: ParsableCommand.Type?
The default command type to run if no subcommand is given.
Defining Command Properties
var commandName: String?
The name of the command to use on the command line.
var version: String
Version information for this command.
var shouldDisplay: Bool
A Boolean value indicating whether this command should be shown in the extended help display.
var aliases: [String]
An array of aliases for the command’s name.