mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
🐛 support variable terminal widths
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user