🐛 support variable terminal widths

This commit is contained in:
Philip Schatz
2016-09-27 14:25:45 -04:00
parent efae2e08c3
commit 7bbc0d12eb
2 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ require('./bootstrap')
require('coffee-script/register')
require('colors')
const argv = require('yargs')
const yargs = require('yargs')
const argv = yargs
.usage('Usage: $0 [options]')
.help('help')
.describe('code-sign', 'Code-sign executables (macOS and Windows only)')
@@ -19,6 +20,7 @@ const argv = require('yargs')
.describe('create-rpm-package', 'Create .rpm package (Linux only)')
.describe('compress-artifacts', 'Compress Atom binaries (and symbols on macOS)')
.describe('install', 'Install Atom')
.wrap(yargs.terminalWidth())
.argv
const cleanOutputDirectory = require('./lib/clean-output-directory')

View File

@@ -7,7 +7,7 @@ const path = require('path')
const fs = require('fs-plus')
module.exports = function parseCommandLine (processArgs) {
const options = yargs(processArgs).wrap(100)
const options = yargs(processArgs).wrap(yargs(processArgs).terminalWidth())
const version = app.getVersion()
options.usage(
dedent`Atom Editor v${version}