Remove shorthand command for height and width to fix conflicts with `-h`. Closes #30, closes #64 and closes #67

Merge branch 'taiyoslime-master'
This commit is contained in:
Jia Hao 2016-01-24 15:34:13 +08:00
commit 7d0b41ae1e
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -59,8 +59,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('--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('-w, --width <value>', 'set window width, defaults to 1280px', parseInt)
.option('-h, --height <value>', 'set window height, defaults to 800px', parseInt)
.option('--width <value>', 'set window width, defaults to 1280px', parseInt)
.option('--height <value>', 'set window height, defaults to 800px', parseInt)
.option('-m, --show-menu-bar', 'set menu bar visible, defaults to false')
.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')