ProjectIdOption.nonMandatory constructor
const
ProjectIdOption.nonMandatory({
- bool asFirstArg = false,
Used for commands that interactively ask for the project ID but allow it to be specified as a command line argument (and if asFirstArg is true, also as the first positional argument). Does not accept value from env variable or scloud config file.
Implementation
const ProjectIdOption.nonMandatory({
final bool asFirstArg = false,
}) : super(
argName: _projectIdArgName,
argAbbrev: _projectIdArgAbbrev,
argPos: asFirstArg ? 0 : null,
helpText: asFirstArg ? _helpTextFirstArg : _helpText,
);