@@ -216,24 +216,14 @@ def _go(self, url, method=None, referer=None, data=None):
216
216
def main ():
217
217
# args and usage
218
218
parser = argparse .ArgumentParser ()
219
+ # fmt: off
219
220
parser .add_argument ("username" , action = "store" , type = str , help = "healthtweets.org username" )
220
221
parser .add_argument ("password" , action = "store" , type = str , help = "healthtweets.org password" )
221
- parser .add_argument (
222
- "state" ,
223
- action = "store" ,
224
- type = str ,
225
- choices = list (HealthTweets .STATE_CODES .keys ()),
226
- help = "U.S. state (ex: TX)" ,
227
- )
228
- parser .add_argument (
229
- "date1" , action = "store" , type = str , help = "first date, inclusive (ex: 2015-01-01)"
230
- )
231
- parser .add_argument (
232
- "date2" , action = "store" , type = str , help = "last date, inclusive (ex: 2015-01-01)"
233
- )
234
- parser .add_argument (
235
- "-d" , "--debug" , action = "store_const" , const = True , default = False , help = "enable debug mode"
236
- )
222
+ parser .add_argument ("state" , action = "store" , type = str , choices = list (HealthTweets .STATE_CODES .keys ()), help = "U.S. state (ex: TX)" )
223
+ parser .add_argument ("date1" , action = "store" , type = str , help = "first date, inclusive (ex: 2015-01-01)" )
224
+ parser .add_argument ("date2" , action = "store" , type = str , help = "last date, inclusive (ex: 2015-01-01)" )
225
+ parser .add_argument ("-d" , "--debug" , action = "store_const" , const = True , default = False , help = "enable debug mode" )
226
+ # fmt: on
237
227
args = parser .parse_args ()
238
228
239
229
ht = HealthTweets (args .username , args .password , debug = args .debug )
0 commit comments