Skip to content

Commit 93e55ce

Browse files
holtkampjsofek
authored andcommitted
Fix: Set default of None for @click.option("--filter", ...) (#2053)
1 parent b87f3f9 commit 93e55ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hatch/cli/env/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def filter_environments(environments, filter_data):
2525
@click.option('--env', '-e', 'env_names', multiple=True, help='The environments to target')
2626
@click.option('--include', '-i', 'included_variable_specs', multiple=True, help='The matrix variables to include')
2727
@click.option('--exclude', '-x', 'excluded_variable_specs', multiple=True, help='The matrix variables to exclude')
28-
@click.option('--filter', '-f', 'filter_json', help='The JSON data used to select environments')
28+
@click.option('--filter', '-f', 'filter_json', default=None, help='The JSON data used to select environments')
2929
@click.option(
3030
'--force-continue', is_flag=True, help='Run every command and if there were any errors exit with the first code'
3131
)

0 commit comments

Comments
 (0)