ProjectIdOption.argsOnly constructor

const ProjectIdOption.argsOnly({
  1. bool asFirstArg = false,
})

Used for commands that require explicit command line argument for the project ID, i.e. not from env variable or config files. (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,
    );