`quarto preview -h` shows pandoc help and does not stop execution of preview

オープン
#15,367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
deno, typescript
領域
cli

調査の方向性

Reproduce with quarto preview -h in any Quarto project and compare it with quarto render -h, which shows the expected help. The payload names only the quarto preview command and its -h flag, so start from how that command parses flags and where unrecognised flags are passed through to pandoc. Done when -h prints Quarto's help and exits without starting a preview or rendering the document.

索引モデルが issue の本文から書いたものです。

説明

bug
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

For example, quarto preview --port 7620 -h outputs

Preparing to preview
[1/1] part_2/part_2.qmd
pandoc [OPTIONS] [FILES]
  -f FORMAT, -r FORMAT  --from=FORMAT, --read=FORMAT
  -t FORMAT, -w FORMAT  --to=FORMAT, --write=FORMAT
  -o FILE               --output=FILE
                        --data-dir=DIRECTORY
[...]

and previews the document.

Steps to reproduce

Run quarto preview -h in any Quarto project.

Actual behavior

For example, quarto preview --port 7620 -h outputs

Preparing to preview
[1/1] part_2/part_2.qmd
pandoc [OPTIONS] [FILES]
  -f FORMAT, -r FORMAT  --from=FORMAT, --read=FORMAT
  -t FORMAT, -w FORMAT  --to=FORMAT, --write=FORMAT
  -o FILE               --output=FILE
                        --data-dir=DIRECTORY
[...]

and previews the document.

Expected behavior

Help message overrides all other flags, no preview or execution.

Your environment

MacOS 27.2.0
Quarto runs from CLI.

Quarto check output
Quarto 1.11.9
[✓] Checking environment information...
      Quarto cache location: /Users/tok/Library/Caches/quarto
      Project root: /Users/tok/imperial_computation/optimisation_coursework/src
      Project config: /Users/tok/imperial_computation/optimisation_coursework/src/_quarto.yml
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.10.0: OK
      Dart Sass version 1.101.0: OK
      Deno version 2.9.8: OK
      Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.11.9
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2026.11
      Chrome Headless Shell: (not installed)
      VeraPDF: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/tok/Library/TinyTeX/bin/universal-darwin
      Version: 2026

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge
      Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

[✓] Checking Python 3 installation....OK
      Version: 3.13.12
      Path: /Users/tok/imperial_computation/optimisation_coursework/.venv/bin/python3
      Jupyter: 5.9.1
      Kernels: python3, julia-1.12

(\) Checking Jupyter engine render....[IPKernelApp] WARNING | Kernel is running over TCP without encryption. All communication (including code and outputs) is sent in plain text and is susceptible to eavesdropping. Use IPC transport or launch with kernel manager-provisioned CurveZMQ keys to enable transport encryption.
[✓] Checking Jupyter engine render....OK

[✓] Checking Julia installation...
主要言語
JavaScript
スター
6.2k
フォーク
492
平均マージ
15時間 15分
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto-cli のほかの issue

quarto-dev/quarto-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。