Skip to content

Commit 11d408c

Browse files
committed
🐛 Switch arguments
1 parent 33ff2ab commit 11d408c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ program
1212
.usage(command.usage)
1313
.description(command.description)
1414
.action(function runAction() {
15-
command.func({}, arguments, this.opts());
15+
command.func(arguments, {}, this.opts());
1616
});
1717

1818
(command.options || [])

command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
name: 'create-library',
77
description: 'creates a React Native library for different platforms',
88
usage: '[options] <name>',
9-
func: (config, args, options) => {
9+
func: (args, config, options) => {
1010
const name = args[0];
1111
const prefix = options.prefix;
1212
const modulePrefix = options.modulePrefix;

0 commit comments

Comments
 (0)