fix: share listing and region parsing in CLIs

verify and generate_pack read --region, comma lists and the listing
modes through model.cliargs (requested_regions, comma_list, LISTING_FLAGS,
refuse_beside_mode, run_listing). verify --list-emulators --list-systems
printed the first listing and exited 0; it now refuses the second as
generate_pack does.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 06:04:31 +01:00
1 parent ee66aa4e66
commit b52c7cfafb
4 files changed
+116 -130

No files matched your search

+2
View File
@@ -48,6 +48,8 @@ class VerifyRefusesWhatAModeDoesNotRead(unittest.TestCase):
(("--emulator", "handy"), "--no-game-data"),
(("--system", "atari-lynx"), "--no-game-data"),
(("--list-systems",), "--no-game-data"),
# The second listing was dropped and the first printed with rc 0.
(("--list-emulators",), "--list-systems"),
)
def test_each_combination_is_refused(self):