Update CLI docs to clarify that --version only applies to the root command (#1326)

This commit is contained in:
Jen Basch
2025-11-18 21:08:03 -08:00
committed by GitHub
parent ba281e8475
commit 67f1ff5ab8
2 changed files with 11 additions and 6 deletions

View File

@@ -788,6 +788,17 @@ The <<command-eval>>, <<command-test>>, <<command-repl>>, <<command-download-pac
include::../../pkl-cli/partials/cli-project-options.adoc[]
[[root-options]]
=== Root options
The root `pkl` command supports the following options:
.-v, --version
[%collapsible]
====
Display version information.
====
== Evaluating Modules
Say we have the following module:

View File

@@ -109,12 +109,6 @@ Duration, in seconds, after which evaluation of a source module will be timed ou
Note that a timeout is treated the same as a program error in that any subsequent source modules will not be evaluated.
====
.-v, --version
[%collapsible]
====
Display version information.
====
.-w, --working-dir
[%collapsible]
====