diff --git a/bin/README.md b/bin/README.md index 7e37211..3cbe44c 100644 --- a/bin/README.md +++ b/bin/README.md @@ -60,8 +60,11 @@ url 为你需要打包的网页链接 🔗,必须提供。 ```shell --name +# 或者 +-n ``` + #### [icon] 应用 icon,支持本地/远程文件,默认为 Pake 自带图标,定制的可以去 [icon-icons](https://icon-icons.com) 或 [macOSicons](https://macosicons.com/#/) 搜索下载。 @@ -72,6 +75,8 @@ url 为你需要打包的网页链接 🔗,必须提供。 ```shell --icon +# 或者 +-i ``` #### [height] @@ -88,6 +93,8 @@ url 为你需要打包的网页链接 🔗,必须提供。 ```shell --width +# 或者 +-w ``` #### [transparent] @@ -96,6 +103,8 @@ url 为你需要打包的网页链接 🔗,必须提供。 ```shell --transparent +# 或者 +-t ``` #### [resize] @@ -112,4 +121,6 @@ url 为你需要打包的网页链接 🔗,必须提供。 ```shell --fullscreen +# 或者 +-f ``` diff --git a/bin/README_EN.md b/bin/README_EN.md index 530e8bf..30dd938 100644 --- a/bin/README_EN.md +++ b/bin/README_EN.md @@ -60,6 +60,8 @@ The name of your application. We will prompt you to enter this if you do not pro ```shell --name +# or +-n ``` #### [icon] @@ -72,6 +74,8 @@ The application icon. Supports local and remote files. By default, it is the bra ```shell --icon +# or +-i ``` #### [height] @@ -88,6 +92,8 @@ The width of the packaged application window. The default is `1200px`. ```shell --width +# or +-w ``` #### [transparent] @@ -96,6 +102,8 @@ Whether to enable the immersive header. The default is `false`. ```shell --transparent +# or +-t ``` #### [resize] @@ -112,4 +120,6 @@ Indicates if the window should be full screen on application launch. The default ```shell --fullscreen +# or +-f ``` diff --git a/bin/cli.ts b/bin/cli.ts index d1a4778..f4e946d 100644 --- a/bin/cli.ts +++ b/bin/cli.ts @@ -14,14 +14,14 @@ program.version(packageJson.version).description('A cli application can package program .showHelpAfterError() .argument('[url]', 'the web url you want to package', validateUrlInput) - .option('--name ', 'application name') - .option('--icon ', 'application icon', DEFAULT_PAKE_OPTIONS.icon) + .option('-n, --name ', 'application name') + .option('-i, --icon ', 'application icon', DEFAULT_PAKE_OPTIONS.icon) .option('--height ', 'window height', validateNumberInput, DEFAULT_PAKE_OPTIONS.height) - .option('--width ', 'window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width) + .option('-w, --width ', 'window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width) .option('--no-resizable', 'whether the window can be resizable', DEFAULT_PAKE_OPTIONS.resizable) - .option('--fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen) - .option('--transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent) - .option('--debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent) + .option('-f, --fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen) + .option('-t, --transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent) + .option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent) .action(async (url: string, options: PakeCliOptions) => { await checkUpdateTips(); diff --git a/dist/cli.js b/dist/cli.js index b99d81b..c304968 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -2256,14 +2256,14 @@ program.version(packageJson.version).description('A cli application can package program .showHelpAfterError() .argument('[url]', 'the web url you want to package', validateUrlInput) - .option('--name ', 'application name') - .option('--icon ', 'application icon', DEFAULT_PAKE_OPTIONS.icon) + .option('-n, --name ', 'application name') + .option('-i, --icon ', 'application icon', DEFAULT_PAKE_OPTIONS.icon) .option('--height ', 'window height', validateNumberInput, DEFAULT_PAKE_OPTIONS.height) - .option('--width ', 'window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width) + .option('-w, --width ', 'window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width) .option('--no-resizable', 'whether the window can be resizable', DEFAULT_PAKE_OPTIONS.resizable) - .option('--fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen) - .option('--transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent) - .option('--debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent) + .option('-f, --fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen) + .option('-t, --transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent) + .option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent) .action((url, options) => __awaiter(void 0, void 0, void 0, function* () { yield checkUpdateTips(); if (!url) {