Skip to content

Commit

Permalink
chore: Change '_' in long options to '-'.
Browse files Browse the repository at this point in the history
On the command line, something like "--latexmk-cmd" looks nicer than
"--latexmk_cmd", though both are parsed identically by argparse.

Cherry-pick commit 0eba25b from feature-bash-completion branch.
  • Loading branch information
badshah400 committed Feb 22, 2024
1 parent 348fb7d commit 98c3949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tartex/_parse_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ def parse_args(args):
# Latexmk options
latexmk_opts = parser.add_argument_group("Options for latexmk processing")
latexmk_opts.add_argument(
"--latexmk_tex",
"--latexmk-tex",
choices=LATEXMK_TEX,
default=None,
help="Force TeX processing mode used by latexmk",
)

latexmk_opts.add_argument(
"-F",
"--force_recompile",
"--force-recompile",
action="store_true",
help="Force recompilation even if .fls exists",
)
Expand Down
2 changes: 1 addition & 1 deletion src/tartex/tartex.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def _do_tar(self, tar_obj):
tar_obj.add(dep)
except FileNotFoundError:
log.warning(
"Skipping INPUT file '%s' not found amongst sources, try"
"Skipping INPUT file '%s', not found amongst sources; try"
" forcing a LaTeX recompile ('-F').",
dep,
)
Expand Down

0 comments on commit 98c3949

Please sign in to comment.