Log message about --one being removed

This commit is contained in:
Kevin Sawicki 2015-06-03 10:23:52 -07:00
parent d44aeb28f7
commit 6ebbb58a80
2 changed files with 11 additions and 3 deletions

View File

@ -11,14 +11,14 @@ else
exit 1
fi
while getopts ":wtfvh-:" opt; do
while getopts ":wtfvh1-:" opt; do
case "$opt" in
-)
case "${OPTARG}" in
wait)
WAIT=1
;;
help|version)
help|version|one)
REDIRECT_STDERR=1
EXPECT_OUTPUT=1
;;
@ -30,7 +30,7 @@ while getopts ":wtfvh-:" opt; do
w)
WAIT=1
;;
h|v)
h|v|1)
REDIRECT_STDERR=1
EXPECT_OUTPUT=1
;;

View File

@ -121,8 +121,16 @@ 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')
options.alias('1', 'one').boolean('one') # Deprecated 1.0 API preview flag
args = options.argv
if args.one
process.stdout.write """
The -1/--one option has been removed. Atom now defaults to launching with
the 1.0 API. Use --include-deprecated-apis to run Atom with deprecated APIs.
"""
if args.help
process.stdout.write(options.help())
process.exit(0)