Skip to content

Commit

Permalink
Fix an argument error with '--keep-going' (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-poidevin authored Jan 30, 2024
1 parent 422fe9c commit bc3d2fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sphinx_autobuild/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

def _get_build_args(args):
build_args = []
arg_dict = vars(args) # Convert the args namespace to a dictionary
for arg, meta in SPHINX_BUILD_OPTIONS:
val = getattr(args, arg)
if not val:
val = arg_dict.get(arg)
if val is None:
continue
opt = f"-{arg}"
if meta is None:
Expand Down

0 comments on commit bc3d2fd

Please sign in to comment.