Skip to content

Commit

Permalink
JM: removint --atomic as standalone option, made '--output-options' s…
Browse files Browse the repository at this point in the history
…ingular.
  • Loading branch information
Jim Moffitt committed Apr 13, 2021
1 parent a599e54 commit 9396f05
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions scripts/search_tweets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright 2020 Twitter, Inc.
# Copyright 2021 Twitter, Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
import os
Expand Down Expand Up @@ -120,19 +120,13 @@ def parse_cmd_args():
default=None,
help="""A comma-delimited list of Twitter Poll JSON attributes to include in endpoint responses. (API default:"id")""")

argparser.add_argument("--atomic",
dest="atomic",
action="store_true",
default=False,
help="Inject 'includes' objects into Tweet objects.")

argparser.add_argument("--output-options",
dest="output_options",
argparser.add_argument("--output-option",
dest="output_option",
default=None,
help="""Set output format:
'r' Unmodified API Responses. (default).
'a' Atomic Tweets: Tweet objects with expansions inline.
'm' Message Stream: Tweets, Expansions, and Metadata as a stream of messages.""")
'r' Unmodified API [R]esponses. (default).
'a' [A]tomic Tweets: Tweet objects with expansions inline.
'm' [M]essage stream: Tweets, expansions, and pagination metadata as a stream of messages.""")

argparser.add_argument("--max-tweets", dest="max_tweets",
type=int,
Expand Down

0 comments on commit 9396f05

Please sign in to comment.