fix: name the platform a typo meant in every CLI

slots ended a mistyped --platform on a traceback; generate_truth,
refresh_data_dirs and auto_fetch exited 0 having done nothing for it.
All six now stop on require_platform before any work.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 07:14:38 +02:00
1 parent 803f9dce96
commit 195fb92036
7 files changed
+48 -4

No files matched your search

+8 -1
View File
@@ -28,7 +28,13 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from artifacts import file_lock, write_bytes_atomic, write_text_atomic
from common import list_registered_platforms, load_platform_config, native_layer, yaml_load
from common import (
list_registered_platforms,
load_platform_config,
native_layer,
require_platform,
yaml_load,
)
from exporter import discover_exporters
from exporter.baseline import HASH_FIELDS, _hash_values, _single_size, build_native_model
@@ -535,6 +541,7 @@ def main() -> None:
include_archived=True,
)
else:
require_platform(args.platform, args.platforms_dir)
platforms = [args.platform]
sys.exit(