diff --git a/nox/_option_set.py b/nox/_option_set.py index 0ffcc9d9..26014117 100644 --- a/nox/_option_set.py +++ b/nox/_option_set.py @@ -160,7 +160,7 @@ def flag_pair_merge_func( def make_flag_pair( name: str, enable_flags: tuple[str, str] | tuple[str], - disable_flags: tuple[str], + disable_flags: tuple[str, str] | tuple[str], default: bool = False, **kwargs: Any, ) -> tuple[Option, Option]: diff --git a/nox/_options.py b/nox/_options.py index 4f6b3ad7..4129c32d 100644 --- a/nox/_options.py +++ b/nox/_options.py @@ -363,7 +363,10 @@ def _session_completer( *_option_set.make_flag_pair( "reuse_existing_virtualenvs", ("-r", "--reuse-existing-virtualenvs"), - ("--no-reuse-existing-virtualenvs",), + ( + "-N", + "--no-reuse-existing-virtualenvs", + ), group=options.groups["environment"], help="Re-use existing virtualenvs instead of recreating them.", ),