Skip to content

idea: Compact output #123

@oskarrough

Description

@oskarrough

hi, while the default output looks great it also takes up a lot of space.

Would you be open to either reduce the number of line-breaks or a config option for a compact layout?

If you remove the last '' here https://github.com/leo/args/blob/master/lib/help.js#L41 it's pretty much there.

Before:

  Usage: haha [options] [command]


  Commands:

    serve, s       Serve your static site
    help           Display help

  Options:

    -v, --version  Output the version number
    -r, --reload   Enable/disable livereloading
    -h, --help     Output usage information
    -p, --port     The port on which the app will be running

  Examples:

    - Do something

   $ haha serve --port 1234

    - Do something else

   $ haha help

After:

  Usage: haha [options] [command]

  Commands:
    serve, s       Serve your static site
    help           Display help

  Options:
    -v, --version  Output the version number
    -r, --reload   Enable/disable livereloading
    -h, --help     Output usage information
    -p, --port     The port on which the app will be running

  Examples:
    Do something
   $ haha serve --port 1234

   Do something else
   $ haha help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions