summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn@endlessos.org>2023-01-29 09:28:31 -0700
committerDan Nicholson <dbn@endlessos.org>2023-02-07 22:59:20 -0700
commit2b8707b010b0e81f8f95cdbb6558572cea04e7d9 (patch)
treebb3856b11a7a4a267242949b211b7f0acbde03af
parentaf505336c2e95820c98fc8e32bce665d5a03c795 (diff)
downloadostree-2b8707b010b0e81f8f95cdbb6558572cea04e7d9.tar.gz
bin: Cleanup documentation of --cache-dir option
In all cases documentation was missing from the manual and the bash completion was incorrectly assigning it as a boolean option.
-rw-r--r--bash/ostree12
-rw-r--r--man/ostree-find-remotes.xml8
-rw-r--r--man/ostree-pull.xml8
-rw-r--r--man/ostree-remote.xml22
4 files changed, 44 insertions, 6 deletions
diff --git a/bash/ostree b/bash/ostree
index 6f3b86ea..5958176f 100644
--- a/bash/ostree
+++ b/bash/ostree
@@ -900,7 +900,6 @@ _ostree_pull() {
local boolean_options="
$main_boolean_options
--commit-metadata-only
- --cache-dir
--disable-fsync
--disable-static-deltas
--require-static-deltas
@@ -912,6 +911,7 @@ _ostree_pull() {
"
local options_with_args="
+ --cache-dir
--depth
--http-header
--localcache-repo -L
@@ -925,7 +925,7 @@ _ostree_pull() {
local options_with_args_glob=$( __ostree_to_extglob "$options_with_args" )
case "$prev" in
- --localcache-repo|-L|--repo|--subpath)
+ --cache-dir|--localcache-repo|-L|--repo|--subpath)
__ostree_compreply_dirs_only
return 0
;;
@@ -1274,17 +1274,17 @@ _ostree_remote_list_gpg_keys() {
_ostree_remote_refs() {
local boolean_options="
$main_boolean_options
- --cache-dir
"
local options_with_args="
+ --cache-dir
--repo
"
local options_with_args_glob=$( __ostree_to_extglob "$options_with_args" )
case "$prev" in
- --repo)
+ --cache-dir|--repo)
__ostree_compreply_dirs_only
return 0
;;
@@ -1343,18 +1343,18 @@ _ostree_remote_show_url() {
_ostree_remote_summary() {
local boolean_options="
$main_boolean_options
- --cache-dir
--raw
"
local options_with_args="
+ --cache-dir
--repo
"
local options_with_args_glob=$( __ostree_to_extglob "$options_with_args" )
case "$prev" in
- --repo)
+ --cache-dir|--repo)
__ostree_compreply_dirs_only
return 0
;;
diff --git a/man/ostree-find-remotes.xml b/man/ostree-find-remotes.xml
index 5c5b2412..eee0d123 100644
--- a/man/ostree-find-remotes.xml
+++ b/man/ostree-find-remotes.xml
@@ -87,6 +87,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
<variablelist>
<varlistentry>
+ <term><option>--cache-dir</option>=DIR</term>
+
+ <listitem><para>
+ Use an alternate cache directory in <literal>DIR</literal>.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--disable-fsync</option></term>
<listitem><para>
diff --git a/man/ostree-pull.xml b/man/ostree-pull.xml
index 0915dd27..b86987ba 100644
--- a/man/ostree-pull.xml
+++ b/man/ostree-pull.xml
@@ -66,6 +66,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
</varlistentry>
<varlistentry>
+ <term><option>--cache-dir</option>=DIR</term>
+
+ <listitem><para>
+ Use an alternate cache directory in <literal>DIR</literal>.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--disable-fsync</option></term>
<listitem><para>
diff --git a/man/ostree-remote.xml b/man/ostree-remote.xml
index b14fc6d4..5b537a9f 100644
--- a/man/ostree-remote.xml
+++ b/man/ostree-remote.xml
@@ -195,6 +195,20 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
</refsect1>
<refsect1>
+ <title>'Refs' Options</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>--cache-dir</option>=DIR</term>
+
+ <listitem><para>
+ Use an alternate cache directory in <literal>DIR</literal>.
+ </para></listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1>
<title>'GPG-Import' Options</title>
<variablelist>
@@ -227,6 +241,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
<variablelist>
<varlistentry>
+ <term><option>--cache-dir</option>=DIR</term>
+
+ <listitem><para>
+ Use an alternate cache directory in <literal>DIR</literal>.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--raw</option></term>
<listitem><para>