From 8b398363576f8795b6fb0477f74dd8dd92f3bc78 Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Tue, 28 Jul 2026 00:01:15 +0800 Subject: [PATCH] feat!: remove --template CLI option Template is positional-only; bare stdin template and --template/-t are both removed. Keep @- for template and --context. Co-authored-by: Cursor --- README.md | 1 - bin/liquid.js | 15 ++------------- docs/source/tutorials/setup.md | 3 +-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 16affc679..bdda8ace2 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ npm install liquidjs ```bash npx liquidjs 'Hello, {{ name }}!' --context '{"name": "Liquid"}' -# or: npx liquidjs --template 'Hello, {{ name }}!' --context '{"name": "Liquid"}' ``` See the [setup guide][setup] for partials, layouts, caching, and other options. diff --git a/bin/liquid.js b/bin/liquid.js index 964f8515b..03e534a39 100755 --- a/bin/liquid.js +++ b/bin/liquid.js @@ -14,8 +14,7 @@ async function render () { program .name('liquidjs') .description('Render a Liquid template') - .argument('[template]', 'liquid template to render (inline, @path, or @- for stdin)') - .option('-t, --template ', 'liquid template to render (inline, @path, or @- for stdin)') + .argument('