Skip to content

Format the help output a bit #2

@Lavesson

Description

@Lavesson

It looks slightly messy right now. Maybe by increasing the spacing between the two columns to avoid the row breaks. Currently, it looks something like this:

usage: dirpart [-h] [-o [out]] [-m] [-e [pattern]] [-s [folder]] [in]

Partition files into A-Z sub directories

positional arguments:
  [in]                  The directory to partition

optional arguments:
  -h, --help            show this help message and exit
  -o [out], --out [out]
                        Output dir. Defaults to current folder
  -m, --move            Move files instead of copying
  -e [pattern], --regexp [pattern]
                        Apply to files matching the regex only
  -s [folder], --special [folder]
                        Use a special folder to put files starting with one or
                        more dots. Defaults to '!misc'

I'd much rather see something like this:

usage: dirpart [-h] [-o [out]] [-m] [-e [pattern]] [-s [folder]] [in]

Partition files into A-Z sub directories

positional arguments:
  [in]                  The directory to partition

optional arguments:
  -h, --help                         show this help message and exit
  -o [out], --out [out]              Output dir. Defaults to current folder
  -m, --move                         Move files instead of copying
  -e [pattern], --regexp [pattern]   Apply to files matching the regex only
  -s [folder], --special [folder]    Use a special folder to put files starting with
                                     one or more dots. Defaults to '!misc'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions