Skip to content

Commit ce6bbaa

Browse files
committed
fix: componentCommand --dry-run to have -dr alias
1 parent 3c7ebc3 commit ce6bbaa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/generateComponent.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default function initGenerateComponentCommand(args, cliConfigFile, progra
2424
'Describe the component you want GRC to generate (e.g., Create a counter component that increments by one when I click on the increment button).',
2525
null
2626
)
27-
.option('-f, --flat', 'Generate the files in the mentioned path insted of creating new folder for it', false);
27+
.option('-f, --flat', 'Generate the files in the mentioned path insted of creating new folder for it', false)
28+
.option('-dr, --dry-run', 'Show what will be generated without writing to disk');
2829

2930
// Dynamic component command option defaults.
3031

@@ -38,8 +39,6 @@ export default function initGenerateComponentCommand(args, cliConfigFile, progra
3839
);
3940
});
4041

41-
componentCommand.option('--dry-run', 'Show what will be generated without writing to disk');
42-
4342
// Component command action.
4443

4544
componentCommand.action((componentNames, cmd) =>

0 commit comments

Comments
 (0)