2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

Fixed -h option's conflict on cli

This commit is contained in:
taiyoslime 2016-01-24 00:02:44 +09:00
parent b7433dfc3b
commit c85696f218
2 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ Use a counter that persists even with window focus for the application badge for
#### [width] #### [width]
``` ```
-w, --width <value> --width <value>
``` ```
Width of the packaged application, defaults to `1280px`. Width of the packaged application, defaults to `1280px`.
@ -154,7 +154,7 @@ Width of the packaged application, defaults to `1280px`.
#### [height] #### [height]
``` ```
-h, --height <value> --height <value>
``` ```
Height of the packaged application, defaults to `800px`. Height of the packaged application, defaults to `800px`.

View File

@ -60,8 +60,8 @@ if (require.main === module) {
.option('-c, --conceal', 'packages the source code within your app into an archive, defaults to false, see http://electron.atom.io/docs/v0.36.0/tutorial/application-packaging/') .option('-c, --conceal', 'packages the source code within your app into an archive, defaults to false, see http://electron.atom.io/docs/v0.36.0/tutorial/application-packaging/')
.option('--counter', 'if the target app should use a persistant counter badge in the dock (OSX only), defaults to false') .option('--counter', 'if the target app should use a persistant counter badge in the dock (OSX only), defaults to false')
.option('-i, --icon <value>', 'the icon file to use as the icon for the app (should be a .icns file on OSX)') .option('-i, --icon <value>', 'the icon file to use as the icon for the app (should be a .icns file on OSX)')
.option('-w, --width <value>', 'set window width, defaults to 1280px', parseInt) .option('--width <value>', 'set window width, defaults to 1280px', parseInt)
.option('-h, --height <value>', 'set window height, defaults to 800px', parseInt) .option('--height <value>', 'set window height, defaults to 800px', parseInt)
.option('-u, --user-agent <value>', 'set the user agent string for the app') .option('-u, --user-agent <value>', 'set the user agent string for the app')
.option('--honest', 'prevent the nativefied app from changing the user agent string to masquerade as a regular chrome browser') .option('--honest', 'prevent the nativefied app from changing the user agent string to masquerade as a regular chrome browser')
.parse(process.argv); .parse(process.argv);