Keep a later config flag when extra words are present.

A non-flag word no longer stops parsing, and a missing home directory refuses to create or rewrite a config instead of writing an empty log path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 12:42:01 +02:00
co-authored by Cursor
parent 465a26911e
commit 87e366e36c
6 changed files with 317 additions and 14 deletions
+1 -2
View File
@@ -17,9 +17,8 @@ import (
var assets embed.FS
func main() {
st, err := openStation(os.Args[1:])
st, err := openStationReported(os.Args[1:], os.Stderr)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
app := &App{station: st}