Skip to content

Commit 67f1ff5

Browse files
authored
Update CLI docs to clarify that --version only applies to the root command (#1326)
1 parent ba281e8 commit 67f1ff5

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

docs/modules/pkl-cli/pages/index.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,17 @@ The <<command-eval>>, <<command-test>>, <<command-repl>>, <<command-download-pac
788788

789789
include::../../pkl-cli/partials/cli-project-options.adoc[]
790790

791+
[[root-options]]
792+
=== Root options
793+
794+
The root `pkl` command supports the following options:
795+
796+
.-v, --version
797+
[%collapsible]
798+
====
799+
Display version information.
800+
====
801+
791802
== Evaluating Modules
792803

793804
Say we have the following module:

docs/modules/pkl-cli/partials/cli-common-options.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ Duration, in seconds, after which evaluation of a source module will be timed ou
109109
Note that a timeout is treated the same as a program error in that any subsequent source modules will not be evaluated.
110110
====
111111
112-
.-v, --version
113-
[%collapsible]
114-
====
115-
Display version information.
116-
====
117-
118112
.-w, --working-dir
119113
[%collapsible]
120114
====

0 commit comments

Comments
 (0)