style(CLI): don't wrap CLI help outputdrives (#813)

`yargs` wraps help output lines, causing the examples to be displayed
like this:

```
Examples:
/usr/bin/nodejs bin/etcher
raspberry-pi.img
/usr/bin/nodejs bin/etcher --no-check
raspberry-pi.img
/usr/bin/nodejs bin/etcher -d /dev/disk2
ubuntu.iso
/usr/bin/nodejs bin/etcher -d /dev/disk2
-y rpi.img
```

As a solution, we can set `.wrap(null)` to completely disable wrapping.

Fixes: https://github.com/resin-io/etcher/issues/810
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-10-31 19:46:39 -04:00 committed by GitHub
parent 9e63639a53
commit 081b719bcb

View File

@ -30,6 +30,10 @@ const packageJSON = require('../../package.json');
* @public
*/
module.exports = yargs
// Don't wrap at all
.wrap(null)
.demand(1, 'Missing image')
// Usage help