Skip to content

Conversation

@rbackert
Copy link

@rbackert rbackert commented Jan 9, 2025

Using empty() to detect whether a CLI argument is optional disallows falsy default values. E.g. optional flags that default to false, as with this plugin's core --resume and --disable_intermediate_images flags.

This PR replaces empty() with isset(), aligning with the behavior in HMCI\Iterator\Base::parse_args().

As a bonus, convert both 'bool' and 'boolean' argument types to 'flag'.

- allow falsy default values for CLI arguments
- convert types 'bool' *and* 'boolean' to 'flag'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant