Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fixed-374-help-port-flag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`promptargs --help` now lists `--port=N` in both the `ui` subcommand usage line and the flags block, documenting the port flag that users need when the default port 3700 is in use. (#374)
3 changes: 2 additions & 1 deletion dist/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cli.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cli.test.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ test('help subcommand and --help flag print usage', () => {
assert.strictEqual(res.status, 0, `exit code for ${arg}`);
assert.match(res.stdout, /Usage:/);
assert.match(res.stdout, /Flags \(place after the template name; -h\/--help works anywhere\):/);
assert.match(res.stdout, /--port=N/);
}
rmSync(dirname(cwd), { recursive: true, force: true });
});
Expand Down
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Usage:
promptargs init Create .prompts/ with examples
promptargs show <template> Preview a template
promptargs env Show auto-detected variable values
promptargs ui Open the builder UI in your browser
promptargs ui [--port=N] Open the builder UI in your browser
promptargs help Show this help

Flags (place after the template name; -h/--help works anywhere):
Expand All @@ -43,6 +43,7 @@ Flags (place after the template name; -h/--help works anywhere):
--status Print status line only (for IDE integration)
-h, --help Show this help
--var value Same as --var=value (switches above take no value)
--port=N Port for "promptargs ui" (default 3700)

Array values:
--file=a.go,b.go Comma-separated → one run per value
Expand Down
Loading