start-storybook cli flag conflict
See original GitHub issueDescribe the bug
The start-storybook
cli make use of the shorthand -h
flag for two different functions.
host
and help
, host
overriding help
.
The help flag is automatically inserted by the commander
package.
No big deal, but could be a quick-win.
➜ ./node_modules/.bin/start-storybook --help
Usage: start-storybook [options]
Options:
-V, --version output the version number
-p, --port [number] Port to run Storybook
-h, --host [string] Host to run Storybook
-s, --static-dir <dir-names> Directory where to load static files from
-c, --config-dir [dir-name] Directory where to load Storybook configurations from
--https Serve Storybook over HTTPS. Note: You must provide your own certificate information.
--ssl-ca <ca> Provide an SSL certificate authority. (Optional with --https, required if using a self-signed certificate)
--ssl-cert <cert> Provide an SSL certificate. (Required with --https)
--ssl-key <key> Provide an SSL key. (Required with --https)
--smoke-test Exit after successful start
--ci CI mode (skip interactive prompts, don't open browser
--quiet Suppress verbose build output
-h, --help output usage information
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
CLI options - Storybook
The flag --no-manager-cache disables the internal caching of Storybook and can severely impact your Storybook loading time, so only use it when you...
Read more >Storybook throwing errors - Stack Overflow
I followed the storybook guide, initially running: npx -p @storybook/cli sb init. then yarn storybook and got this error:
Read more >@storybook/cli | Yarn - Package Manager
Storybook CLI (Command Line Interface) is the easiest way to add Storybook to your project. Screenshot. Go to your project and run: cd...
Read more >Command Line Interface | RedwoodJS Docs
A comprehensive reference of Redwood's CLI. ... The Redwood CLI has two entry-point commands: ... --first-run, Use this flag the first time you...
Read more >Babashka book
The -e flag is optional when the argument starts with a paren. ... Typing bb help from the command line will print all...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For your interest, from Commander v3, there is
.helpOption
to customise the help flags and message: https://github.com/tj/commander.js/releases/tag/v3.0.0That sounds like a decent workaround for now @pascalduez