From 8eb27be8cf7388af3314f83b66e7b68f61e7c118 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 15 Mar 2024 06:10:18 +0530 Subject: [PATCH] docs: Improve help and completion strings for '-p' --- src/tartex/_parse_args.py | 2 +- src/tartex/data/tartex-completion.fish | 2 +- src/tartex/data/tartex-completion.zsh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tartex/_parse_args.py b/src/tartex/_parse_args.py index ef95407..e401b1a 100644 --- a/src/tartex/_parse_args.py +++ b/src/tartex/_parse_args.py @@ -292,7 +292,7 @@ def parse_args(args): "-p", "--packages", action="store_true", - help="add json file listing TeX packages used", + help="add names of used (La)TeX packages as a json file", ) parser.add_argument( diff --git a/src/tartex/data/tartex-completion.fish b/src/tartex/data/tartex-completion.fish index d1a3aef..54544f0 100644 --- a/src/tartex/data/tartex-completion.fish +++ b/src/tartex/data/tartex-completion.fish @@ -18,7 +18,7 @@ complete -c tartex -s V -l Version -d "display tartex version and exit" complete -c tartex -f -s b -l bib -d "include bibliography (.bib) file in tar" complete -c tartex -f -s F -l force-recompile -d "force recompilation even if .fls exists" complete -c tartex -f -s l -l list -d "print a list of files to include and quit" -complete -c tartex -f -s p -l packages -d "print used (La)TeX packages as json" +complete -c tartex -f -s p -l packages -d "add names of used (La)TeX packages as a json file" complete -c tartex -f -s s -l summary -d "print a summary at the end" complete -c tartex -f -s v -l verbose -d "increase verbosity (-v, -vv, etc.)" diff --git a/src/tartex/data/tartex-completion.zsh b/src/tartex/data/tartex-completion.zsh index 383056b..8897636 100644 --- a/src/tartex/data/tartex-completion.zsh +++ b/src/tartex/data/tartex-completion.zsh @@ -43,7 +43,7 @@ _arguments -s -S \ '(- : *)'{-V,--version}'[print tartex version and exit]' \ '(completions -a --add)'{-a,--add=}'[include additional file names matching glob-style PATTERNS]:PATTERNS:_files' \ '(completions -b --bib)'{-b,--bib}'[find and add bib file to tarball]' \ - '(completions -p --packages)'{-p,--packages}'[print System and Local latex packages used]' \ + '(completions -p --packages)'{-p,--packages}'[add names of used (La)TeX packages as a json file]' \ '(completions -s --summary)'{-s,--summary}'[print a summary at the end]' \ '*'{-v,--verbose}'[increase verbosity (-v, -vv, etc.)]' \ '(completions -x --excl)'{-x,--excl=}'[exclude file names matching PATTERNS]:PATTERNS:_files' \