fix(cli): honour --no-color on parse errors and show profile defaults in --help (#35)

This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-08 22:30:28 -05:00
1 parent bc59dff8c3
commit fc67e72a62
8 files changed
+126 -13

No files matched your search

@@ -196,5 +196,12 @@ class StartCommandArgsTest {
assertEquals("http://floci.internal:4599", StartCommand.withPort("http://floci.internal:4566", 4599));
assertEquals("http://localhost:4599", StartCommand.withPort("http://localhost:4566", 4599));
assertEquals("http://localhost:4599", StartCommand.withPort("not a url", 4599));
// BL-015: only the port changes.
assertEquals("http://user:pw@floci.internal:4599/base?x=1#f",
StartCommand.withPort("http://user:pw@floci.internal:4566/base?x=1#f", 4599));
// Escaped characters stay escaped: %26 must not turn into a second query parameter.
assertEquals("http://floci.internal:4599/b?token=a%26b",
StartCommand.withPort("http://floci.internal:4566/b?token=a%26b", 4599));
assertEquals("http://[::1]:4599", StartCommand.withPort("http://[::1]:4566", 4599));
}
}