UNPKG

445 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('-a, --absolute', 'Use absolute paths for story imports');
12
13 program.parse();
14
15 return program.opts();
16}
17
18module.exports = { getArguments };