Permalink
Browse files

Merge pull request #30 from charulagrl/develop

replaced optparse with argparse
  • Loading branch information...
ralphbean committed Mar 9, 2014
2 parents 47ac454 + 5ab1532 commit 4e893d55198667d8fc5ee04193592c931269afa0
Showing with 4 additions and 4 deletions.
  1. +4 −4 summershum/cli.py
View
@@ -1,4 +1,4 @@
-import optparse
+import argparse
import requests
import json
@@ -59,10 +59,10 @@ def _load_page(page):
def parse_args():
- parser = optparse.OptionParser()
- parser.add_option("--id", dest="msg_id", default=None,
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--id", dest="msg_id", default=None,
help="Process the specified message")
- parser.add_option("--force", dest="force", default=False,
+ parser.add_argument("--force", dest="force", default=False,
action="store_true",
help="Force processing the sources even if the database"
"already knows it")

0 comments on commit 4e893d5

Please sign in to comment.