mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-16 00:05:56 +08:00
fix bug in task system task selection
This commit is contained in:
parent
882d074e76
commit
48edf5dadb
@ -170,7 +170,7 @@ export function getOptions<TOptions extends OptionSpecifier>(
|
||||
.parse(argv);
|
||||
|
||||
const intermediate = command.opts();
|
||||
if (intermediate.task === undefined && argv[2]) {
|
||||
if (intermediate.task === undefined && argv[2] && !argv[2].startsWith('-')) {
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
intermediate.task = argv[2];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user