Skip to content

Commit

Permalink
Show actual default PhD settings (#150)
Browse files Browse the repository at this point in the history
Co-authored-by: haszi <[email protected]>
  • Loading branch information
haszi and haszi authored Sep 11, 2024
1 parent 9d6a341 commit 75bf5fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions phpdotnet/phd/Options/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,21 +541,21 @@ public function option_help(string $k, mixed $v): never
--package <packagename> The package to use
-I
--noindex Do not index before rendering but load from cache
(default: false)
(default: " . ($this->config->noindex() ? 'true' : 'false') . ")
-M
--memoryindex Do not save indexing into a file, store it in memory.
(default: false)
(default: " . ($this->config->memoryindex() ? 'true' : 'false') . ")
-r
--forceindex Force re-indexing under all circumstances
(default: false)
(default: " . ($this->config->forceindex() ? 'true' : 'false') . ")
-t
--notoc Do not rewrite TOC before rendering but load from
cache (default: false)
cache (default: " . ($this->config->notoc() ? 'true' : 'false') . ")
-d <filename>
--docbook <filename> The Docbook file to render from
-x
--xinclude Process XML Inclusions (XInclude)
(default: false)
(default: " . ($this->config->xinclude() ? 'true' : 'false') . ")
-p <id[=bool]>
--partial <id[=bool]> The ID to render, optionally skipping its children
chunks (default to true; render children)
Expand All @@ -565,13 +565,13 @@ public function option_help(string $k, mixed $v): never
-l
--list Print out the supported packages and formats
-o <directory>
--output <directory> The output directory (default: .)
--output <directory> The output directory (default: " . $this->config->output_dir() . ")
-F filename
--outputfilename filename Filename to use when writing standalone formats
(default: <packagename>-<formatname>.<formatext>)
-L <language>
--lang <language> The language of the source file (used by the CHM
theme). (default: en)
theme). (default: " . $this->config->language() . ")
-c <bool>
--color <bool> Enable color output when output is to a terminal
(default: " . ($this->config->color_output() ? 'true' : 'false') . ")
Expand All @@ -587,11 +587,11 @@ public function option_help(string $k, mixed $v): never
--ext <extension> The alternative filename extension to use,
including the dot. Use 'false' for no extension.
-S <bool>
--saveconfig <bool> Save the generated config (default: false).
--saveconfig <bool> Save the generated config (default: " . ($this->config->saveconfig() ? 'true' : 'false') . ").
-Q
--quit Don't run the build. Use with --saveconfig to
just save the config.
just save the config (default: " . ($this->config->quit() ? 'true' : 'false') . ").
-k
--packagedir Use an external package directory.
Expand Down
4 changes: 2 additions & 2 deletions tests/options/default_handler_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Copyright(c) %d-%d The PHP Documentation Group
-l
--list Print out the supported packages and formats
-o <directory>
--output <directory> The output directory (default: .)
--output <directory> The output directory (default: %s)
-F filename
--outputfilename filename Filename to use when writing standalone formats
(default: <packagename>-<formatname>.<formatext>)
Expand All @@ -76,7 +76,7 @@ Copyright(c) %d-%d The PHP Documentation Group

-Q
--quit Don't run the build. Use with --saveconfig to
just save the config.
just save the config (default: %s).
-k
--packagedir Use an external package directory.

Expand Down
4 changes: 2 additions & 2 deletions tests/options/default_handler_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Copyright(c) %d-%d The PHP Documentation Group
-l
--list Print out the supported packages and formats
-o <directory>
--output <directory> The output directory (default: .)
--output <directory> The output directory (default: %s)
-F filename
--outputfilename filename Filename to use when writing standalone formats
(default: <packagename>-<formatname>.<formatext>)
Expand All @@ -76,7 +76,7 @@ Copyright(c) %d-%d The PHP Documentation Group

-Q
--quit Don't run the build. Use with --saveconfig to
just save the config.
just save the config (default: %s).
-k
--packagedir Use an external package directory.

Expand Down

0 comments on commit 75bf5fb

Please sign in to comment.