Skip to content

Commit

Permalink
fix: document the fact that set works with STDIN if the value is om…
Browse files Browse the repository at this point in the history
…itted (#96)

I was about to suggest implementing this feature when I found it's already implemented, just not documented.
  • Loading branch information
ilyagr authored Feb 3, 2025
1 parent 602c2fa commit 1c7a043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var (
}

setCmd = &cobra.Command{
Use: "set KEY[@DB] VALUE",
Short: "Set a value for a key with an optional @ db.",
Use: "set KEY[@DB] [VALUE]",
Short: "Set a value for a key with an optional @ db. If VALUE is omitted, read value from the standard input.",
Args: cobra.RangeArgs(1, 2),
RunE: set,
}
Expand Down

0 comments on commit 1c7a043

Please sign in to comment.