mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 02:36:32 +00:00
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:
parent
9e63639a53
commit
081b719bcb
@ -30,6 +30,10 @@ const packageJSON = require('../../package.json');
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
module.exports = yargs
|
module.exports = yargs
|
||||||
|
|
||||||
|
// Don't wrap at all
|
||||||
|
.wrap(null)
|
||||||
|
|
||||||
.demand(1, 'Missing image')
|
.demand(1, 'Missing image')
|
||||||
|
|
||||||
// Usage help
|
// Usage help
|
||||||
|
Loading…
x
Reference in New Issue
Block a user