question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

start-storybook cli flag conflict

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shadowspawncommented, Aug 18, 2019

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.0

0reactions
Keraitocommented, Feb 3, 2019

That sounds like a decent workaround for now @pascalduez

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found