mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Log message about --one being removed
This commit is contained in:
parent
d44aeb28f7
commit
6ebbb58a80
6
atom.sh
6
atom.sh
@ -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
|
||||
;;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user