Skip to content

Commit 44612cb

Browse files
committed
Update options flags default string
1 parent 6c75350 commit 44612cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ Usage of notigo:
9090
notigo [-k KEY]... [-K PATH]... [-e EVENT] [-t TITLE] [-f PATH]... [-m [-s SEPARATOR]] [-d DELAY] [-c] ARGS...
9191
9292
-k, --key=KEY List of key(s) to use
93-
-K, --keys-path=PATH List of file path(s) that contains key(s)
93+
-K, --keys-path=PATH List of file path(s) that contains key(s) (default: ~/.config/notigo/keys if no key specified)
9494
-e, --event=EVENT Event key passed to IFTTT (default: notigo)
9595
-t, --title=TITLE Title of the notification(s)
9696
-f, --file=PATH List of file(s) used for content
9797
-m, --merge Content should be merged
9898
-s, --merge-separator=SEPARATOR Separator used while merging content (default: "\n")
99-
-d, --delay=DELAY Delay between two notification (default: 3s)
99+
-d, --delay=DELAY Delay between two notifications (default: 3s)
100100
-c, --concurrent Concurrently send notifications to the keys
101101
```
102102

cmd/notigo/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ const (
1818

1919
type options struct {
2020
Keys []string `short:"k" long:"key" description:"List of key(s) to use" value-name:"KEY"`
21-
KeysPaths []string `short:"K" long:"keys-path" description:"List of file path(s) that contains key(s)" value-name:"PATH"`
21+
KeysPaths []string `short:"K" long:"keys-path" description:"List of file path(s) that contains key(s)" default-mask:"~/.config/notigo/keys if no key specified" value-name:"PATH"`
2222
Event string `short:"e" long:"event" description:"Event key passed to IFTTT" default:"notigo" value-name:"EVENT"`
2323
Title string `short:"t" long:"title" description:"Title of the notification(s)" value-name:"TITLE"`
2424
Files []string `short:"f" long:"file" description:"List of file(s) used for content" value-name:"PATH"`
2525
Merge bool `short:"m" long:"merge" description:"Content should be merged"`
2626
MergeSep string `short:"s" long:"merge-separator" description:"Separator used while merging content" default:"\n" value-name:"SEPARATOR"`
27-
Delay time.Duration `short:"d" long:"delay" description:"Delay between two notification" default:"3s" value-name:"DELAY"`
27+
Delay time.Duration `short:"d" long:"delay" description:"Delay between two notifications" default:"3s" value-name:"DELAY"`
2828
Concurrent bool `short:"c" long:"concurrent" description:"Concurrently send notifications to the keys"`
2929
}
3030

0 commit comments

Comments
 (0)