'Usage: datasette', not 'Usage: cli' - refs #336

This commit is contained in:
Simon Willison 2018-07-24 09:03:07 -07:00
commit bd1db56936
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
4 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
$ datasette package --help $ datasette package --help
Usage: cli package [OPTIONS] FILES... Usage: datasette package [OPTIONS] FILES...
Package specified SQLite files into a new datasette Docker container Package specified SQLite files into a new datasette Docker container

View file

@ -1,6 +1,6 @@
$ datasette publish --help $ datasette publish --help
Usage: cli publish [OPTIONS] PUBLISHER [FILES]... Usage: datasette publish [OPTIONS] PUBLISHER [FILES]...
Publish specified SQLite database files to the internet along with a datasette API. Publish specified SQLite database files to the internet along with a datasette API.

View file

@ -1,6 +1,6 @@
$ datasette serve --help $ datasette serve --help
Usage: cli serve [OPTIONS] [FILES]... Usage: datasette serve [OPTIONS] [FILES]...
Serve up specified SQLite database files with a web UI Serve up specified SQLite database files with a web UI

View file

@ -18,6 +18,7 @@ def update_help_includes():
actual = "$ datasette {} --help\n\n{}".format( actual = "$ datasette {} --help\n\n{}".format(
name, result.output name, result.output
) )
actual = actual.replace('Usage: cli ', 'Usage: datasette ')
open(docs_path / filename, "w").write(actual) open(docs_path / filename, "w").write(actual)