From 2cc14a236c601ee2a6b81d8580e70989574baec9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 8 Dec 2017 19:47:50 -0800 Subject: [PATCH] Ditched short form options for --static and --template-dir The -t clashes with the package --tag option --- datasette/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datasette/cli.py b/datasette/cli.py index cd5d69b2..22009e91 100644 --- a/datasette/cli.py +++ b/datasette/cli.py @@ -227,8 +227,8 @@ class StaticMount(click.ParamType): ) @click.option('--inspect-file', help='Path to JSON file created using "datasette inspect"') @click.option('-m', '--metadata', type=click.File(mode='r'), help='Path to JSON file containing license/source metadata') -@click.option('-t', '--template-dir', type=click.Path(exists=True, file_okay=False, dir_okay=True), help='Path to directory containing custom templates') -@click.option('-s', '--static', type=StaticMount(), help='mountpoint:path-to-directory for serving static files', multiple=True) +@click.option('--template-dir', type=click.Path(exists=True, file_okay=False, dir_okay=True), help='Path to directory containing custom templates') +@click.option('--static', type=StaticMount(), help='mountpoint:path-to-directory for serving static files', multiple=True) def serve(files, host, port, debug, reload, cors, page_size, max_returned_rows, sql_time_limit_ms, sqlite_extensions, inspect_file, metadata, template_dir, static): """Serve up specified SQLite database files with a web UI""" if reload: