Browse Source

Add better error message

pull/1/head
Wesley Kerfoot 4 years ago
parent
commit
327d5f260a
  1. 3
      src/twit2blog.nim

3
src/twit2blog.nim

@ -27,8 +27,7 @@ when isMainModule:
twitterParams["thread"] = twitterParams["t"]
if not (twitterParams.hasKey("user") and twitterParams.hasKey("thread")):
echo twitterParams
stderr.writeLine("Invalid Arguments.")
stderr.writeLine("Invalid Arguments. Must provide both --user and --thread (or -u and -t). E.g. -u:foo -t:123")
quit(1)
for tweet in twitterParams["thread"].getThread(twitterParams["user"]):

Loading…
Cancel
Save