Skip to content

Commit

Permalink
chore: Cli note for forwarding console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Dax committed Jul 24, 2023
1 parent 839fac1 commit 42f5429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ Options:
--disableWaitAssets Disable waiting for requested assets [boolean] [default: false]
--silent [boolean] [default: false]
--verbose [boolean] [default: false]
--forwardConsoleLogs [boolean] [default: false]
--forwardConsoleLogs Forward in-page console logs to the user's console. [boolean] [default: false]
--serverCmd Command line to launch Storybook server. [string] [default: ""]
--serverTimeout Timeout [msec] for starting Storybook server. [number] [default: 60000]
--shard The sharding options for this run. In the format <shardNumber>/<totalShards>.
Expand Down
6 changes: 5 additions & 1 deletion packages/storycap/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function createOptions(): MainOptions {
})
.option('silent', { boolean: true, default: false })
.option('verbose', { boolean: true, default: false })
.option('forwardConsoleLogs', { boolean: true, default: false })
.option('forwardConsoleLogs', {
boolean: true,
default: false,
description: "Forward in-page console logs to the user's console.",
})
.option('serverCmd', { string: true, default: '', description: 'Command line to launch Storybook server.' })
.option('serverTimeout', {
number: true,
Expand Down

0 comments on commit 42f5429

Please sign in to comment.