Skip to content

Commit f6f7f25

Browse files
committed
feat(benchmark): add --help/-h flag support
Prints usage info (options, env vars, test counts) and exits immediately without running the benchmark. Used by the Aegis deployment agent for skill verification.
1 parent a4d8fd1 commit f6f7f25

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

skills/analysis/home-security-benchmark/scripts/run-benchmark.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,31 @@ function getArg(name, defaultVal) {
4848
return args[idx + 1] || defaultVal;
4949
}
5050

51+
// ─── Help ─────────────────────────────────────────────────────────────────────
52+
if (args.includes('--help') || args.includes('-h')) {
53+
console.log(`
54+
Home Security AI Benchmark Suite • DeepCamera / SharpAI
55+
56+
Usage: node scripts/run-benchmark.cjs [options]
57+
58+
Options:
59+
--gateway URL LLM gateway URL (default: http://localhost:5407)
60+
--vlm URL VLM server base URL (disabled if omitted)
61+
--out DIR Results output directory (default: ~/.aegis-ai/benchmarks)
62+
--no-open Don't auto-open report in browser
63+
-h, --help Show this help message
64+
65+
Environment Variables (set by Aegis):
66+
AEGIS_GATEWAY_URL LLM gateway URL
67+
AEGIS_VLM_URL VLM server base URL
68+
AEGIS_SKILL_ID Skill identifier (enables skill mode)
69+
AEGIS_SKILL_PARAMS JSON params from skill config
70+
71+
Tests: 131 total (96 LLM + 35 VLM) across 16 suites
72+
`.trim());
73+
process.exit(0);
74+
}
75+
5176
// Aegis provides config via env vars; CLI args are fallback for standalone
5277
const GATEWAY_URL = process.env.AEGIS_GATEWAY_URL || getArg('gateway', 'http://localhost:5407');
5378
const VLM_URL = process.env.AEGIS_VLM_URL || getArg('vlm', '');

0 commit comments

Comments
 (0)