Merge pull request #101 from mesosphere/dcos-509-reword-help

Goodbye, --all
This commit is contained in:
Connor Doyle
2015-04-06 00:13:46 -07:00
4 changed files with 4 additions and 8 deletions

View File

@@ -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

View File

@@ -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.
"""

View File

@@ -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''

View File

@@ -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 \