niquery.cli.utils module¶
- niquery.cli.utils.force_output(f: Callable) Callable[source]¶
Create a click option to add the
--force / -fflag to a command.Creates a Click command decorator to add an option that can be used to enable or disable the ability to forcefully overwrite existing output files, for example. The value of this option is stored in the Click context object and can be accessed during the command execution.