Skip to content

Commit

Permalink
Add version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
koenrh committed Nov 23, 2019
1 parent 84ec5e6 commit 9380c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions bin/delete-tweets
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import argparse
import os
import sys

__author__ = "Koen Rouwhorst"
__version__ = "1.0.0"

def main():
parser = argparse.ArgumentParser(description="Delete old tweets.")
parser.add_argument("-d", dest="date", required=True,
Expand All @@ -18,6 +21,7 @@ def main():
help="Spare tweets with more than the provided likes", type=int, default=0)
parser.add_argument("--spare-min-retweets", dest="min_retweets",
help="Spare tweets with more than the provided retweets", type=int, default=0)
parser.add_argument('--version', action='version', version='%(prog)s ' + __version__)

args = parser.parse_args()

Expand Down
5 changes: 0 additions & 5 deletions deletetweets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import io
import os
import sys
Expand All @@ -9,9 +7,6 @@
import twitter
from dateutil.parser import parse

__author__ = "Koen Rouwhorst"
__version__ = "1.0.0"


class TweetDestroyer(object):
def __init__(self, twitter_api):
Expand Down

0 comments on commit 9380c68

Please sign in to comment.