--help output is missing several existing flags #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
utils/warproot#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The
usage()function inmain.go(lines 27-42) doesn't document all flags that are actually registered and parsed by the program. Users running--helpget an incomplete picture of available options.Flags defined via
flag.*Varbut 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
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-halias, so--helpaccurately reflects the CLI surface.