Skip to content

Commit 0919071

Browse files
committed
readme: the version is a subcommand, not a flag
The flags table advertised -v/--version; neither exists — cobra prints usage for both. `sdns version` is the real spelling, and it reports the Go toolchain alongside the version.
1 parent 91364b5 commit 0919071

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ $ make test
9999
| ----------------- | ------------------------------------------------------------------------------ |
100100
| -c, --config PATH | Location of the config file. If it doesn't exist, a new one is generated at that path. Default: sdns.conf (working directory) |
101101
| -t, --test | Test configuration file and exit. Returns exit code 0 if valid, 1 if invalid. Checks every setting it can judge — addresses, IPs, CIDRs, enumerated values, upstream formats, TLS files — and reports all problems at once. It also fails on keys the file carries that no setting claims: a typo, or a key an older SDNS understood. Startup only warns about those, so upgrading with a stale key does not become an outage |
102-
| -v, --version | Show the SDNS version |
103102
| -h, --help | Show help information and exit |
104103

104+
`sdns version` prints the SDNS version and the Go toolchain it was built with.
105+
105106
## Debugging Environment
106107

107108
To debug your environment, execute the following command:

0 commit comments

Comments
 (0)