Commit c081834c authored by Francesco Poldi's avatar Francesco Poldi

Added Hide_output to cli #496

parent 1a4ec728
VERSION = (1, 2, 5) VERSION = (1, 2, 6)
__version__ = '.'.join(map(str, VERSION)) __version__ = '.'.join(map(str, VERSION))
...@@ -114,6 +114,7 @@ def initialize(args): ...@@ -114,6 +114,7 @@ def initialize(args):
c.Custom_query = args.custom_query c.Custom_query = args.custom_query
c.Popular_tweets = args.popular_tweets c.Popular_tweets = args.popular_tweets
c.Skip_certs = args.skip_certs c.Skip_certs = args.skip_certs
c.Hide_output = args.hide_output
return c return c
def options(): def options():
...@@ -198,6 +199,7 @@ def options(): ...@@ -198,6 +199,7 @@ def options():
ap.add_argument("-cq", "--custom-query", help="Custom search query.") ap.add_argument("-cq", "--custom-query", help="Custom search query.")
ap.add_argument("-pt", "--popular-tweets", help="Scrape popular tweets instead of recent ones.", action="store_true") ap.add_argument("-pt", "--popular-tweets", help="Scrape popular tweets instead of recent ones.", action="store_true")
ap.add_argument("-sc", "--skip-certs", help="Skip certs verification, useful for SSC.", action="store_false") ap.add_argument("-sc", "--skip-certs", help="Skip certs verification, useful for SSC.", action="store_false")
ap.add_argument("-ho", "--hide-output", help="Hide output, no tweets will be displayed.", action="store_true")
args = ap.parse_args() args = ap.parse_args()
return args return args
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment