--help output is missing several existing flags #2

Closed
opened 2026-07-25 11:25:54 +00:00 by AnmiTaliDev · 0 comments
AnmiTaliDev commented 2026-07-25 11:25:54 +00:00 (Migrated from github.com)

Description

The usage() function in main.go (lines 27-42) doesn't document all flags that are actually registered and parsed by the program. Users running --help get an incomplete picture of available options.

Flags defined via flag.*Var but missing from the usage text:

  • --target (main.go:70)
  • --sync (main.go:71)
  • --archive (main.go:72)
  • --enter (main.go:73)
  • --cmd (main.go:74)
  • -h (alias for --help, main.go:68)

Steps to reproduce

./warproot --help

Compare the printed options list against the flags registered in main().

Expected behavior

usage() should list every supported flag, including --target, --sync, --archive, --enter, --cmd, and the -h alias, so --help accurately reflects the CLI surface.

### Description The `usage()` function in `main.go` (lines 27-42) doesn't document all flags that are actually registered and parsed by the program. Users running `--help` get an incomplete picture of available options. Flags defined via `flag.*Var` but missing from the usage text: - `--target` (`main.go:70`) - `--sync` (`main.go:71`) - `--archive` (`main.go:72`) - `--enter` (`main.go:73`) - `--cmd` (`main.go:74`) - `-h` (alias for `--help`, `main.go:68`) ### Steps to reproduce ``` ./warproot --help ``` Compare the printed options list against the flags registered in `main()`. ### Expected behavior `usage()` should list every supported flag, including `--target`, `--sync`, `--archive`, `--enter`, `--cmd`, and the `-h` alias, so `--help` accurately reflects the CLI surface.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
utils/warproot#2
No description provided.