Merge pull request #7084 from atom/ks-add-back-one-flag

Log message about --one being removed
This commit is contained in:
Kevin Sawicki
2015-06-03 14:59:35 -07:00

View File

@@ -107,7 +107,7 @@ parseCommandLine = ->
ATOM_HOME The root path for all configuration files and folders.
Defaults to `~/.atom`.
"""
options.boolean('include-deprecated-apis').describe('include-deprecated-apis', 'Include deprecated APIs')
options.boolean('include-deprecated-apis').describe('include-deprecated-apis', 'Include deprecated APIs.')
options.alias('d', 'dev').boolean('d').describe('d', 'Run in development mode.')
options.alias('f', 'foreground').boolean('f').describe('f', 'Keep the browser process in the foreground.')
options.alias('h', 'help').boolean('h').describe('h', 'Print this usage message.')
@@ -121,6 +121,10 @@ parseCommandLine = ->
options.alias('v', 'version').boolean('v').describe('v', 'Print the version.')
options.alias('w', 'wait').boolean('w').describe('w', 'Wait for window to be closed before returning.')
options.string('socket-path')
# Deprecated 1.0 API preview flag
options.alias('1', 'one').boolean('1').describe('1', 'This option is no longer supported. Atom now defaults to launching with the 1.0 API. Use --include-deprecated-apis to run Atom with deprecated APIs.')
args = options.argv
if args.help