diff --git a/README.md b/README.md index d3f638c5f..bdda8ace2 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ npm install liquidjs **CLI** ```bash -npx liquidjs --template 'Hello, {{ name }}!' --context '{"name": "Liquid"}' +npx liquidjs '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 b09b984eb..41d932037 100755 --- a/bin/liquid.js +++ b/bin/liquid.js @@ -14,7 +14,7 @@ async function render () { program .name('liquidjs') .description('Render a Liquid template') - .requiredOption('-t, --template ', 'liquid template to render (inline or @path to a file)') // TODO: Change to argument in 11.0 + .argument('