Skip to content

Commit

Permalink
Update options flags default string
Browse files Browse the repository at this point in the history
  • Loading branch information
scotow committed Dec 18, 2019
1 parent 6c75350 commit 44612cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ Usage of notigo:
notigo [-k KEY]... [-K PATH]... [-e EVENT] [-t TITLE] [-f PATH]... [-m [-s SEPARATOR]] [-d DELAY] [-c] ARGS...
-k, --key=KEY List of key(s) to use
-K, --keys-path=PATH List of file path(s) that contains key(s)
-K, --keys-path=PATH List of file path(s) that contains key(s) (default: ~/.config/notigo/keys if no key specified)
-e, --event=EVENT Event key passed to IFTTT (default: notigo)
-t, --title=TITLE Title of the notification(s)
-f, --file=PATH List of file(s) used for content
-m, --merge Content should be merged
-s, --merge-separator=SEPARATOR Separator used while merging content (default: "\n")
-d, --delay=DELAY Delay between two notification (default: 3s)
-d, --delay=DELAY Delay between two notifications (default: 3s)
-c, --concurrent Concurrently send notifications to the keys
```

Expand Down
4 changes: 2 additions & 2 deletions cmd/notigo/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ const (

type options struct {
Keys []string `short:"k" long:"key" description:"List of key(s) to use" value-name:"KEY"`
KeysPaths []string `short:"K" long:"keys-path" description:"List of file path(s) that contains key(s)" value-name:"PATH"`
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"`
Event string `short:"e" long:"event" description:"Event key passed to IFTTT" default:"notigo" value-name:"EVENT"`
Title string `short:"t" long:"title" description:"Title of the notification(s)" value-name:"TITLE"`
Files []string `short:"f" long:"file" description:"List of file(s) used for content" value-name:"PATH"`
Merge bool `short:"m" long:"merge" description:"Content should be merged"`
MergeSep string `short:"s" long:"merge-separator" description:"Separator used while merging content" default:"\n" value-name:"SEPARATOR"`
Delay time.Duration `short:"d" long:"delay" description:"Delay between two notification" default:"3s" value-name:"DELAY"`
Delay time.Duration `short:"d" long:"delay" description:"Delay between two notifications" default:"3s" value-name:"DELAY"`
Concurrent bool `short:"c" long:"concurrent" description:"Concurrently send notifications to the keys"`
}

Expand Down

0 comments on commit 44612cb

Please sign in to comment.