]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/log
ceph-deploy.git
10 years ago[RM-12151] Add description to ToggleRawTextHelpFormatter 313/head
Travis Rhoden [Wed, 1 Jul 2015 20:45:44 +0000 (13:45 -0700)]
[RM-12151] Add description to ToggleRawTextHelpFormatter

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] args.fs_type is always set
Travis Rhoden [Wed, 1 Jul 2015 20:35:22 +0000 (13:35 -0700)]
[RM-12151] args.fs_type is always set

It has a default value, no need to check 'if args.fs_type:'.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Remove redundant check for allowed fstypes
Travis Rhoden [Wed, 1 Jul 2015 20:33:09 +0000 (13:33 -0700)]
[RM-12151] Remove redundant check for allowed fstypes

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Enable tests for disk subcommands
Travis Rhoden [Tue, 30 Jun 2015 20:44:56 +0000 (13:44 -0700)]
[RM-12151] Enable tests for disk subcommands

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Move disk subcmds to subparser
Travis Rhoden [Tue, 30 Jun 2015 20:44:29 +0000 (13:44 -0700)]
[RM-12151] Move disk subcmds to subparser

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Enable 'osd' tests related to subcommand options and help
Travis Rhoden [Tue, 30 Jun 2015 19:21:51 +0000 (12:21 -0700)]
[RM-12151] Enable 'osd' tests related to subcommand options and help

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Move 'osd' subcommands to a subparser
Travis Rhoden [Tue, 30 Jun 2015 19:21:21 +0000 (12:21 -0700)]
[RM-12151] Move 'osd' subcommands to a subparser

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Move 'rgw create' to a subparser
Travis Rhoden [Tue, 30 Jun 2015 18:36:22 +0000 (11:36 -0700)]
[RM-12151] Move 'rgw create' to a subparser

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Redo mon sub command help text
Travis Rhoden [Mon, 29 Jun 2015 21:41:27 +0000 (14:41 -0700)]
[RM-12151] Redo mon sub command help text

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years ago[RM-12151] Add new 'ToggleRawTextHelpFormatter'
Travis Rhoden [Mon, 29 Jun 2015 21:32:55 +0000 (14:32 -0700)]
[RM-12151] Add new 'ToggleRawTextHelpFormatter'

The existing use of argparse.RawDescriptionHelpFormatter seems to stem
from wanting to use newlines in argparse help output.  To use the raw
text formatter, you have to provide a static string that is always
output with --help.

The problem is that the defintion of this help string is pretty
disconnected from the rest of the code. You are documenting options many
lines away from where they are defined instead of normally being at the
same time.

To solve this, introduce a new ToggleRawTextHelpFormatter that allows
for the optional use of Raw text on any individual help item by
prefixing it with 'R|'.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>