Skip to content

Commit

Permalink
Don't panic if you call lucifer with no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburke committed Jun 8, 2015
1 parent 1a41cbe commit 8bd2753
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lucifer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ func main() {
grepHelp := "Grep for the given pattern"
grep := runflags.String("grep", "", grepHelp)
runflags.StringVar(grep, "g", "", grepHelp+" (shorthand)")
if len(os.Args) < 2 {
usage()
}
switch os.Args[1] {
case "invalidate":
err := invalidateflags.Parse(os.Args[2:])
Expand Down

0 comments on commit 8bd2753

Please sign in to comment.