Skip to content

Commit 94e6462

Browse files
committed
Tune --help output
1 parent a3d3bc3 commit 94e6462

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

doc2dash/__main__.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,39 +41,39 @@ def emit(self, record):
4141
@click.command()
4242
@click.argument("source",
4343
type=click.Path(exists=True, file_okay=False, readable=True))
44+
@click.option("--name", "-n", help="Name docset explicitly.", metavar="NAME")
4445
@click.option(
45-
"--force", "-f", is_flag=True,
46-
help="force overwriting if destination already exists")
47-
@click.option("--name", "-n", help="name docset explicitly", metavar="NAME")
48-
@click.option(
49-
"--quiet", "-q", is_flag=True, help="limit output to errors and warnings"
46+
"--destination", "-d", type=click.Path(), default=".", show_default=True,
47+
help="Destination directory for docset, ignored if "
48+
"-A is specified."
5049
)
5150
@click.option(
52-
"--verbose", "-v", is_flag=True, help="be verbose"
51+
"--force", "-f", is_flag=True,
52+
help="Force overwriting if destination already exists.")
53+
@click.option(
54+
"--icon", "-i", type=click.File("rb"), help="Add PNG icon to docset."
5355
)
5456
@click.option(
55-
"--destination", "-d", type=click.Path(), default=".", show_default=True,
56-
help="destination directory for docset, ignored if "
57-
"-A is specified"
57+
"--index-page", "-I", metavar="FILENAME", type=click.Path(),
58+
help="Set the file that is shown when the docset is clicked within "
59+
"Dash.app."
5860
)
5961
@click.option(
6062
"--add-to-dash", "-a", is_flag=True,
61-
help="automatically add resulting docset to Dash.app"
63+
help="Automatically add resulting docset to Dash.app."
6264
)
6365
@click.option(
6466
"--add-to-global", "-A", is_flag=True,
65-
help="create docset in doc2dash's default global directory [{}] "
66-
"and add it to Dash.app (works only on OS X)".format(
67+
help="Create docset in doc2dash's default global directory [{}] "
68+
"and add it to Dash.app (works only on OS X).".format(
6769
click.format_filename(DEFAULT_DOCSET_PATH)
6870
)
6971
)
7072
@click.option(
71-
"--icon", "-i", type=click.File("rb"), help="add PNG icon to docset"
73+
"--quiet", "-q", is_flag=True, help="Limit output to errors and warnings."
7274
)
7375
@click.option(
74-
"--index-page", "-I", metavar="FILENAME", type=click.Path(),
75-
help="set the file that is shown when the docset is clicked within "
76-
"Dash.app"
76+
"--verbose", "-v", is_flag=True, help="Be verbose."
7777
)
7878
@click.version_option(version=__version__)
7979
def main(source, force, name, quiet, verbose, destination, add_to_dash,

0 commit comments

Comments
 (0)