You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli.ts
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -197,10 +197,10 @@ program.command('hub')
197
197
198
198
program.command('setup-unity')
199
199
.description('Sets up the environment for the specified project and finds or installs the Unity Editor version for it.')
200
-
.option('-p, --unity-project <unityProjectPath>','The path to a Unity project or "none" to skip project detection.')
200
+
.option('-p, --unity-project <unityProject>','The path to a Unity project or "none" to skip project detection.')
201
201
.option('-u, --unity-version <unityVersion>','The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If specified, it will override the version read from the project.')
202
202
.option('-c, --changeset <changeset>','The Unity changeset to get (e.g. 1234567890ab).')
203
-
.option('-a, --arch <architecture>','The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
203
+
.option('-a, --arch <arch>','The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
204
204
.option('-b, --build-targets <buildTargets>','The Unity build target to get (e.g. iOS, Android).')
205
205
.option('-m, --modules <modules>','The Unity module to get (e.g. ios, android).')
206
206
.option('-i, --install-path <installPath>','The path to install the Unity Editor to. By default, it will be installed to the default Unity Hub location.')
.description('Uninstall the specified Unity Editor version.')
290
-
.option('-e, --unity-editor <unityEditorPath>','The path to the Unity Editor executable. If unspecified, -u, --unity-version or the UNITY_EDITOR_PATH environment variable must be set.')
290
+
.option('-e, --unity-editor <unityEditor>','The path to the Unity Editor executable. If unspecified, -u, --unity-version or the UNITY_EDITOR_PATH environment variable must be set.')
291
291
.option('-u, --unity-version <unityVersion>','The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If unspecified, then --unity-editor must be specified.')
292
292
.option('-c, --changeset <changeset>','The Unity changeset to get (e.g. 1234567890ab).')
293
-
.option('-a, --arch <architecture>','The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
293
+
.option('-a, --arch <arch>','The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
.description('Open a Unity project in the Unity Editor.')
345
-
.option('-p, --unity-project <unityProjectPath>','The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
345
+
.option('-p, --unity-project <unityProject>','The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
346
346
.option('-u, --unity-version <unityVersion>','The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If specified, it will override the version read from the project.')
.description('Run command line args directly to the Unity Editor.')
379
-
.option('--unity-editor <unityEditorPath>','The path to the Unity Editor executable. If unspecified, --unity-project or the UNITY_EDITOR_PATH environment variable must be set.')
380
-
.option('--unity-project <unityProjectPath>','The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
384
+
.option('--unity-editor <unityEditor>','The path to the Unity Editor executable. If unspecified, --unity-project or the UNITY_EDITOR_PATH environment variable must be set.')
385
+
.option('--unity-project <unityProject>','The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
381
386
.option('--log-name <logName>','The name of the log file.')
382
387
.option('--verbose','Enable verbose logging.')
383
388
.allowUnknownOption(true)
@@ -428,7 +433,7 @@ program.command('run')
428
433
program.command('list-project-templates')
429
434
.description('List all available project templates for the given Unity editor.')
430
435
.option('-u, --unity-version <unityVersion>','The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If unspecified, then --unity-editor must be specified.')
431
-
.option('-e, --unity-editor <unityEditorPath>','The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR_PATH environment variable must be set.')
436
+
.option('-e, --unity-editor <unityEditor>','The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR_PATH environment variable must be set.')
432
437
.option('--verbose','Enable verbose logging.')
433
438
.option('--json','Prints the last line of output as JSON string.')
.option('-p, --path <projectPath>','The path to create the new Unity project. If unspecified, the current working directory will be used.')
482
487
.option('-t, --template <projectTemplate>','The name of the template package to use for creating the unity project. Supports regex patterns.','com.unity.template.3d(-cross-platform)?')
483
488
.option('-u, --unity-version <unityVersion>','The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If unspecified, then --unity-editor must be specified.')
484
-
.option('-e, --unity-editor <unityEditorPath>','The path to the Unity Editor executable. If unspecified, -u, --unity-version, or the UNITY_EDITOR_PATH environment variable must be set.')
489
+
.option('-e, --unity-editor <unityEditor>','The path to the Unity Editor executable. If unspecified, -u, --unity-version, or the UNITY_EDITOR_PATH environment variable must be set.')
485
490
.option('--verbose','Enable verbose logging.')
486
491
.option('--json','Prints the last line of output as JSON string.')
0 commit comments