aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-20 12:03:03 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-20 12:03:03 -0800
commit58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4 (patch)
tree2826ed9cdbdc81b7ccdbb4f3134e5eb56367de96 /main.go
parente0ec1f8176c677d841745d8b90ebb5dc91511ea1 (diff)
downloadneko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.tar.gz
neko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.tar.bz2
neko-58edb2b02b9605b053fa2d2ab7de17f2b8eb30b4.zip
fix cmd line for newfeed
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index fdf4e4b..26dd1fc 100644
--- a/main.go
+++ b/main.go
@@ -21,7 +21,7 @@ func main() {
flag.StringVar(&newFeed, "add", "", "add feed `http://example.com/rss.xml`")
flag.Parse()
- if !update && !serve {
+ if !update && !serve && newFeed == ""{
flag.Usage()
return
}