We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca7832 commit d533311Copy full SHA for d533311
1 file changed
cmd/histkeep/main.go
@@ -5,6 +5,7 @@ import (
5
"fmt"
6
"log"
7
"os"
8
+ "strings"
9
10
"github.com/bbeardsley/histkeep"
11
)
@@ -39,9 +40,9 @@ func main() {
39
40
os.Exit(0)
41
}
42
- command := flag.Arg(0)
43
- file := flag.Arg(1)
44
- value := flag.Arg(2)
+ command := strings.TrimSpace(flag.Arg(0))
+ file := strings.TrimSpace(flag.Arg(1))
45
+ value := strings.TrimSpace(flag.Arg(2))
46
47
hist := histkeep.NewHistKeep(file, *lastNPtr)
48
0 commit comments