Skip to content

Commit 340e6ad

Browse files
committed
shortcircuit render help for both —help and -h
Fixes #3202
1 parent 8f48f3a commit 340e6ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

news/changelog-1.3.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,7 @@
158158

159159
- fix rendering of individual project files to stdout ([#4052](https://github.com/quarto-dev/quarto-cli/issues/4052)).
160160
- fix previewing docusaurus project on Windows ([#4312](https://github.com/quarto-dev/quarto-cli/issues/4312)).
161+
162+
## Other
163+
164+
- fix error when running the command `quarto render -h` to receive help ([#3202](https://github.com/quarto-dev/quarto-cli/issues/3202)).

src/command/render/cmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const renderCommand = new Command()
148148
}
149149

150150
// show help if requested
151-
if (args.length > 0 && args[0] === "--help") {
151+
if (args.length > 0 && args[0] === "--help" || args[0] === "-h") {
152152
renderCommand.showHelp();
153153
return;
154154
}

0 commit comments

Comments
 (0)