UNPKG

514 BJavaScriptView Raw
1function getArguments() {
2 const { program } = require('commander');
3
4 program
5 .description('Getter and watcher for react native storybook')
6 .option(
7 '-c, --config-path <path>',
8 'The path to your config folder relative to your project-dir',
9 './.storybook'
10 )
11 .option('-js, --use-js', 'Use a js file for storybook.requires')
12 .option('-a, --absolute', 'Use absolute paths for story imports');
13
14 program.parse();
15
16 return program.opts();
17}
18
19module.exports = { getArguments };