summaryrefslogtreecommitdiff
path: root/cmd/planr
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/planr')
-rw-r--r--cmd/planr/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/planr/main.go b/cmd/planr/main.go
index 93f1cbf..2243203 100644
--- a/cmd/planr/main.go
+++ b/cmd/planr/main.go
@@ -76,7 +76,7 @@ func main() {
log.SetFlags(log.Llongfile | log.Lmsgprefix)
log.SetPrefix("planr: ")
- if len(os.Args) < 2 {
+ if flag.NArg() < 1 {
dieUsage()
}