fix(sdk): list create <source> and headless flags in usage help

dsh-sdk's usage template predates the create command and create-sdk's
predates --config/--config-json/--json, so --help hid both surfaces the
README already documents. Pin each with a help-output assertion.
This commit is contained in:
imccyu
2026-07-18 21:25:56 +08:00
parent ed418827c2
commit 78f21bf703
4 changed files with 6 additions and 0 deletions
@@ -168,6 +168,7 @@ describe('Commander launcher arguments', () => {
await expect(runDshSdkCommand(['unknown'], context)).resolves.toBe(1)
await expect(runDshSdkCommand([], context)).resolves.toBe(0)
expect(context.readStdout()).toContain('Usage: dsh-sdk')
expect(context.readStdout()).toContain('create <source>')
const defaults = commandContext(root)
await writeFile(join(root, 'main.mjs'), 'export function main() { return "ok" }\n')