ProjectIdOption.argsOnly constructor
const
ProjectIdOption.argsOnly({
- bool asFirstArg = false,
Used for commands that require explicit command line argument for the project ID, i.e. not from env variable or scloud config file. (And if asFirstArg is true, also as the first positional argument.)
Implementation
const ProjectIdOption.argsOnly({
final bool asFirstArg = false,
}) : super(
argName: _projectIdArgName,
argAbbrev: _projectIdArgAbbrev,
argPos: asFirstArg ? 0 : null,
mandatory: true,
helpText: asFirstArg ? _helpTextFirstArg : _helpText,
);