Skip to content

Commit

Permalink
Fixed default for with_choice when convert is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
collijk committed Dec 31, 2024
1 parent 02add46 commit 3ce9e38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fixed default for with_choice when convert is not set.
### Added
- Add a `clobber` argument to touch.

Expand Down
2 changes: 1 addition & 1 deletion src/rra_tools/cli_tools/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def with_choice(
names.append(f"-{short_name}")
option_type, default, show_default = process_choices(allow_all, choices)

if convert is None:
if choices and convert is None:
convert = allow_all

if convert:
Expand Down

0 comments on commit 3ce9e38

Please sign in to comment.