summaryrefslogtreecommitdiff
path: root/flatbot.go
diff options
context:
space:
mode:
Diffstat (limited to 'flatbot.go')
-rw-r--r--flatbot.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/flatbot.go b/flatbot.go
index fdf7487..83ca886 100644
--- a/flatbot.go
+++ b/flatbot.go
@@ -39,6 +39,10 @@ func usage() {
func main() {
flag.Usage = usage
flag.Parse()
+ if flag.NArg() == 0 {
+ usage()
+ os.Exit(1)
+ }
if !*dryRun {
if len(*apiToken) == 0 {
fmt.Fprintf(os.Stderr,
@@ -53,10 +57,6 @@ func main() {
os.Exit(1)
}
}
- if flag.NArg() == 0 {
- usage()
- os.Exit(1)
- }
for {
err := loopOnce()