diff --git a/src/cli.js b/src/cli.js index f9b7cb8a..55b7c733 100755 --- a/src/cli.js +++ b/src/cli.js @@ -5,23 +5,24 @@ import { program } from 'commander'; import nwbuild from './index.js'; program - .option('--mode', 'get, run or build mode') - .option('--version', 'NW.js version') - .option('--flavor', 'NW.js build flavor') - .option('--platform', 'NW.js supported platform') - .option('--arch', 'NW.js supported architecture') - .option('--downloadUrl', 'NW.js download server') - .option('--manifestUrl', 'NW.js version info') - .option('--cacheDir', 'Cache NW.js binaries') - .option('--outDir', 'NW.js build artifacts') - .option('--app', 'Platform specific app metadata. Refer to docs for more info') - .option('--cache', 'Flag to enable/disable caching') - .option('--ffmpeg', 'Flag to enable/disable downloading community ffmpeg') - .option('--glob', 'Flag to enable/disable globbing') - .option('--logLevel', 'Specify log level') - .option('--zip', 'Flag to enable/disable compression') - .option('--managedManifest', 'Managed manifest mode') - .option('--nodeAddon', 'Download NW.js Node headers'); + .argument('', 'File path(s) to project') + .option('--mode ', 'get, run or build mode') + .option('--version ', 'NW.js version') + .option('--flavor ', 'NW.js build flavor') + .option('--platform ', 'NW.js supported platform') + .option('--arch ', 'NW.js supported architecture') + .option('--downloadUrl ', 'NW.js download server') + .option('--manifestUrl ', 'NW.js version info') + .option('--cacheDir ', 'Cache NW.js binaries') + .option('--outDir ', 'NW.js build artifacts') + .option('--app ', 'Platform specific app metadata. Refer to docs for more info') + .option('--cache ', 'Flag to enable/disable caching') + .option('--ffmpeg ', 'Flag to enable/disable downloading community ffmpeg') + .option('--glob ', 'Flag to enable/disable globbing') + .option('--logLevel ', 'Specify log level') + .option('--zip ', 'Flag to enable/disable compression') + .option('--managedManifest ', 'Managed manifest mode') + .option('--nodeAddon ', 'Download NW.js Node headers'); program.parse();