Skip to content

Commit 44009a8

Browse files
committed
Fix help text: show correct flag usage and examples
1 parent f878ea1 commit 44009a8

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

main.go

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ func printUsage() {
187187
fmt.Printf(`restic-sentry %s — Reliable Windows backup manager using restic
188188
189189
Usage:
190-
restic-sentry <command> [--config path]
190+
restic-sentry <command> [flags]
191191
192192
Commands:
193-
backup Run a full backup (preflight, backup, verify, prune, notify)
194-
check Run a full integrity check with data verification
195-
status Show snapshots, repo stats, and scheduler status
196-
install Register in Windows Task Scheduler (run as admin)
197-
uninstall Remove from Windows Task Scheduler
193+
backup Run a full backup (preflight, backup, verify, prune, notify)
194+
check Run a full integrity check with data verification
195+
status Show snapshots, repo stats, and scheduler status
196+
install Register in Windows Task Scheduler (run as admin)
197+
uninstall Remove from Windows Task Scheduler
198198
init-config Generate an example config file
199199
install-restic Download and install latest restic to C:\restic
200200
update Self-update to the latest restic-sentry release
@@ -203,9 +203,12 @@ Commands:
203203
Flags:
204204
--config Path to config JSON file (default: restic-sentry.json next to binary)
205205
206-
Example:
207-
restic-sentry init-config # create example config
208-
restic-sentry backup --config backup.json # run backup now
209-
restic-sentry install --config backup.json # schedule automatic backups
206+
Examples:
207+
restic-sentry install-restic # download restic
208+
restic-sentry init-config # create example config
209+
restic-sentry backup # run backup (uses default config path)
210+
restic-sentry backup --config C:\mybackup.json # run backup with specific config
211+
restic-sentry install # schedule automatic backups
212+
restic-sentry update # self-update to latest version
210213
`, version)
211214
}

0 commit comments

Comments
 (0)