message: ADD cli verification for --exit-once-uploaded
diff: @@ -28,8 +28,7 @@ export async function verifyOptions(cli, argv) {
  autoAcceptChanges: cli.autoAcceptChanges === '' ? true : cli.autoAcceptChanges,
  exitZeroOnChanges: cli.exitZeroOnChanges === '' ? true : cli.exitZeroOnChanges,
  - exitOnceUploaded:
  - cli.exitOnceUploaded === '' ? true : cli.exitOnceUploaded,
  + exitOnceUploaded: cli.exitOnceUploaded === '' ? true : cli.exitOnceUploaded,
  ignoreLastBuildOnBranch: cli.ignoreLastBuildOnBranch,
  preserveMissingSpecs: cli.preserveMissing,
  originalArgv: argv,
  @@ -92,6 +91,12 @@ export async function verifyOptions(cli, argv) {
  noStart = true;
  }
  + if (noStart && cliOptions.exitOnceUploaded) {
  + throw new Error(dedent`
  + --exit-once-uploaded is only supported when you use build-storybook
  + `);
  + }
  +
  // Build Storybook instead of starting it
  if (!scriptName && !exec && !noStart && !storybookUrl && !port) {
  if (storybookBuildDir) {
  