Merge pull request #101 from mesosphere/dcos-509-reword-help
Goodbye, --all
This commit is contained in:
@@ -2,13 +2,11 @@
|
||||
|
||||
Usage:
|
||||
dcos help
|
||||
dcos help --all
|
||||
dcos help info
|
||||
|
||||
Options:
|
||||
--help Show this screen
|
||||
--version Show version
|
||||
--all Prints all available commands to the standard output
|
||||
"""
|
||||
import dcoscli
|
||||
import docopt
|
||||
|
||||
@@ -22,7 +22,7 @@ Environment Variables:
|
||||
DCOS_CONFIG This environment variable points to the
|
||||
location of the DCOS configuration file.
|
||||
|
||||
'dcos help --all' lists all available subcommands. See 'dcos <command> --help'
|
||||
'dcos help' lists all available subcommands. See 'dcos <command> --help'
|
||||
to read about a specific subcommand.
|
||||
"""
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ Environment Variables:
|
||||
DCOS_CONFIG This environment variable points to the
|
||||
location of the DCOS configuration file.
|
||||
|
||||
'dcos help --all' lists all available subcommands. See 'dcos <command> --help'
|
||||
'dcos help' lists all available subcommands. See 'dcos <command> --help'
|
||||
to read about a specific subcommand.
|
||||
"""
|
||||
assert stderr == b''
|
||||
|
||||
@@ -13,13 +13,11 @@ def test_help():
|
||||
|
||||
Usage:
|
||||
dcos help
|
||||
dcos help --all
|
||||
dcos help info
|
||||
|
||||
Options:
|
||||
--help Show this screen
|
||||
--version Show version
|
||||
--all Prints all available commands to the standard output
|
||||
"""
|
||||
assert stderr == b''
|
||||
|
||||
@@ -40,9 +38,9 @@ def test_version():
|
||||
assert stderr == b''
|
||||
|
||||
|
||||
def test_list_all():
|
||||
def test_list():
|
||||
dcos_path = os.path.dirname(os.path.dirname(util.which('dcos')))
|
||||
returncode, stdout, stderr = exec_command(['dcos', 'help', '--all'])
|
||||
returncode, stdout, stderr = exec_command(['dcos', 'help'])
|
||||
|
||||
assert returncode == 0
|
||||
assert stdout == """Command line utility for \
|
||||
|
||||
Reference in New Issue
Block a user