You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2018/10/15 12:00:22 UTC

[mesos] branch master updated: Changed usage documentation for new CLI.

This is an automated email from the ASF dual-hosted git repository.

klueska pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new a063afc  Changed usage documentation for new CLI.
a063afc is described below

commit a063afce9868dcee38a0ab7efaa028244f3999cf
Author: Armand Grillet <ag...@mesosphere.io>
AuthorDate: Mon Oct 15 07:49:28 2018 -0400

    Changed usage documentation for new CLI.
    
    Moved the '[options]' in the usage documentation to where they should be
    set when using the CLI.  Since we use docopt to parse the command line,
    we use its 'options_first' parameter to force all options to be included
    before the arguments to a command. This has always been the case, but
    the help menu hasn't reflected this. This commit fixes that.
    
    Review: https://reviews.apache.org/r/69026/
---
 src/python/cli_new/lib/cli/plugins/base.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/python/cli_new/lib/cli/plugins/base.py b/src/python/cli_new/lib/cli/plugins/base.py
index 6cba828..c85abd6 100644
--- a/src/python/cli_new/lib/cli/plugins/base.py
+++ b/src/python/cli_new/lib/cli/plugins/base.py
@@ -40,7 +40,7 @@ Usage:
   mesos {plugin} (-h | --help)
   mesos {plugin} --version
   mesos {plugin} <command> (-h | --help)
-  mesos {plugin} <command> [<args>...] [options]
+  mesos {plugin} [options] <command> [<args>...]
 
 Options:
   -h --help  Show this screen.
@@ -56,7 +56,7 @@ SUBCOMMAND_USAGE = \
 Usage:
   mesos {plugin} {command} (-h | --help)
   mesos {plugin} {command} --version
-  mesos {plugin} {command} {arguments} [options]
+  mesos {plugin} {command} [options] {arguments}
 
 Options:
 {flags}