diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-10-15 18:33:10 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-10-24 18:32:17 +0200 |
commit | 1be6a5db21bfc785e201f32d56765d408428644e (patch) | |
tree | 173f1e685a05b655ec73a1a476f9162039328d69 /man | |
parent | shared/pretty-print: add highlighting (diff) | |
download | systemd-1be6a5db21bfc785e201f32d56765d408428644e.tar.xz systemd-1be6a5db21bfc785e201f32d56765d408428644e.zip |
tmpfiles: add --tldr
This is like --cat-config, but omits the comments and empty lines.
The name is incoungrous with --cat-config, but I don't see a nice way to
call it that wouldn't be annoyingly long.
pager_open() is moved to cat_config() to remove some lines from run().
Diffstat (limited to 'man')
-rw-r--r-- | man/standard-options.xml | 10 | ||||
-rw-r--r-- | man/systemd-tmpfiles.xml | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/man/standard-options.xml b/man/standard-options.xml index 75e91862f4..eb27f5cb65 100644 --- a/man/standard-options.xml +++ b/man/standard-options.xml @@ -74,6 +74,16 @@ </listitem> </varlistentry> + <varlistentry id='tldr'> + <term><option>--tldr</option></term> + + <listitem> + <para>Copy the contents of config files to standard output. Only the "interesting" parts of the + configuration files are printed, comments and empty lines are skipped. Before each file, the filename + is printed as a comment.</para> + </listitem> + </varlistentry> + <varlistentry id='json'> <term><option>--json=</option><replaceable>MODE</replaceable></term> diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml index c048927882..95e1e2951c 100644 --- a/man/systemd-tmpfiles.xml +++ b/man/systemd-tmpfiles.xml @@ -250,6 +250,7 @@ </varlistentry> <xi:include href="standard-options.xml" xpointer="cat-config" /> + <xi:include href="standard-options.xml" xpointer="tldr" /> <xi:include href="standard-options.xml" xpointer="no-pager" /> <xi:include href="standard-options.xml" xpointer="help" /> <xi:include href="standard-options.xml" xpointer="version" /> |