Cliff format Issue with parameter --help

asked 2018-08-29 06:31:15 -0600

  • I'm trying to print command and its description with --help parameter.

    • The description is getting through docstring used in python class.

    • Options arguments commands are properly aligned, I'm trying to align my subcommands.

The output of my Cliff subcommand with --help parameter as follows,

 optional arguments:
  --version            show program's version number and exit
  -v, --verbose        Increase verbosity of output. Can be repeated.
  -q, --quiet          Suppress output except warnings and errors.
  --log-file LOG_FILE  Specify a file to log output. Disabled by default.
  -h, --help           Show help message and exit.
  --debug              Show tracebacks on errors.

  command1       print bash completion command (cliff)
  command2  Create command.
  command-and3  Get user job status.
  command4-isGet job details


edit retag flag offensive close merge delete