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.
This commit is contained in:
Dan Nicholson 2023-01-29 09:28:31 -07:00
parent af505336c2
commit 2b8707b010
4 changed files with 44 additions and 6 deletions

View File

@ -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
;;

View File

@ -86,6 +86,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
<title>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>
<varlistentry>
<term><option>--disable-fsync</option></term>

View File

@ -65,6 +65,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
</para></listitem>
</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>

View File

@ -194,6 +194,20 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
</variablelist>
</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>
@ -226,6 +240,14 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
<title>'Summary' 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>
<varlistentry>
<term><option>--raw</option></term>