Skip to content

Commit

Permalink
Fix list command usage with --extract-state-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Jan 8, 2025
1 parent caf5aa5 commit e759252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def main(click_context: click.Context,

# this is here just to suppress state-dir creation
# for certain cmdline arguments
if set(ARGS_WITH_NO_STATEDIR) & set(sys.argv):
if (not extract_state_dir) and set(ARGS_WITH_NO_STATEDIR) & set(sys.argv):
return

ctx.logger.info(f'Using --state-dir={ctx.state_dirpath}')
Expand Down

0 comments on commit e759252

Please sign in to comment.