From e4814b0d6d981cf96eef2803e8f20548263ea0e4 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Tue, 8 Oct 2024 19:22:29 -0700 Subject: [PATCH] Add description to CLI arguments (#46890) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46890 Add details as this is discussed in the Turbo Native Modules documentation going out in 0.76: ``` Usage: combine-js-to-schema-cli.js [ ...] Options: --help Show help [boolean] --version Show version number [boolean] -p, --platform Platforms to generate schema for, this works on filenames: [.].(js|tsx?) [default: null] -e, --exclude Regular expression to exclude files from schema generation [default: null] ``` ## Changelog: [General][Added] Add cli --help details to combine-js-toschema-cli.js Reviewed By: dmytrorykun Differential Revision: D64045337 fbshipit-source-id: a4b977da2cbb0198a5d43f17ca3466ebde21e9a9 --- .../src/cli/combine/combine-js-to-schema-cli.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js b/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js index f2c98912efe..9fc5e0b2fb8 100644 --- a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js +++ b/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js @@ -17,11 +17,17 @@ const { const yargs = require('yargs'); const argv = yargs + .usage('Usage: $0 [ ...]') .option('p', { + describe: + 'Platforms to generate schema for, this works on filenames: [.].(js|tsx?)', alias: 'platform', + default: null, }) .option('e', { + describe: 'Regular expression to exclude files from schema generation', alias: 'exclude', + default: null, }) .parseSync();