Skip to content

Commit 9003617

Browse files
committed
add options back
1 parent 7bb247c commit 9003617

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/cli/src/cliEntry.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ const addCommand = (command: CommandT, ctx: ContextT) => {
120120
opt.default,
121121
),
122122
);
123+
124+
/**
125+
* We want all commands (like "start", "link") to accept these flags, so we
126+
* add them here instead of in every single command. This way they'll be
127+
* displayed in commands --help menus.
128+
*/
129+
cmd
130+
.option('--projectRoot [string]', 'Path to the root of the project')
131+
.option('--reactNativePath [string]', 'Path to React Native');
123132
};
124133

125134
async function run() {

0 commit comments

Comments
 (0)