From 66a3cdd3bee51ad894a549c352bcdfc6d2cb855f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 24 Jul 2023 21:52:33 -0700 Subject: [PATCH] Remove query -t shortcut - so I can use it for table later, refs #16 --- dclient/cli.py | 2 +- docs/queries.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dclient/cli.py b/dclient/cli.py index 49ff338..baebde8 100644 --- a/dclient/cli.py +++ b/dclient/cli.py @@ -22,7 +22,7 @@ def cli(): @cli.command() @click.argument("url_or_alias") @click.argument("sql") -@click.option("--token", "-t", help="API token") +@click.option("--token", help="API token") def query(url_or_alias, sql, token): """ Run a SQL query against a Datasette database URL diff --git a/docs/queries.md b/docs/queries.md index 99d5ff3..6ce1504 100644 --- a/docs/queries.md +++ b/docs/queries.md @@ -44,8 +44,8 @@ Usage: dclient query [OPTIONS] URL_OR_ALIAS SQL Returns a JSON array of objects Options: - -t, --token TEXT API token - --help Show this message and exit. + --token TEXT API token + --help Show this message and exit. ```