Browse Source

Cleanup cmdline "create" help text

tags/nilmdb-0.2^2
Jim Paris 11 years ago
parent
commit
6c89659df7
1 changed files with 9 additions and 12 deletions
  1. +9
    -12
      nilmdb/cmdline/create.py

+ 9
- 12
nilmdb/cmdline/create.py View File

@@ -9,22 +9,19 @@ from argparse import RawDescriptionHelpFormatter as raw_form
def setup(self, sub):
cmd = sub.add_parser("create", help="Create a new stream",
formatter_class = raw_form,
description=textwrap.dedent("""
Create a new empty stream at the"""
"""specified path and with the specifed
layout type.
description="""
Create a new empty stream at the specified path and with the specified
layout type.

Layout types are of the format: type_count
Layout types are of the format: type_count

'type' is a data type like 'float32', 'float64', """
"""'uint16', 'int32', etc.
'type' is a data type like 'float32', 'float64', 'uint16', 'int32', etc.

'count' is the number of columns of this type.
'count' is the number of columns of this type.

For example, 'float32_8' means the data for this """
"""stream has 8 columns of
32-bit floating point values.
"""))
For example, 'float32_8' means the data for this stream has 8 columns of
32-bit floating point values.
""")
cmd.set_defaults(handler = cmd_create)
group = cmd.add_argument_group("Required arguments")
group.add_argument("path",


Loading…
Cancel
Save