Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for arguments skip following and ignore list #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akbar30Bill
Copy link

No description provided.

@alitoufighi
Copy link
Owner

Thank you for your contribution! I'll review it and be back asap!

Copy link
Owner

@alitoufighi alitoufighi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Akbar. With some minor changes LGTM!

@@ -11,6 +12,11 @@
my_user_id = getenv('MY_USER_ID')
tweet_id = getenv('TWEET_ID')

parser = argparse.ArgumentParser()
parser.add_argument("-s", "--skip_following", help="Skip accounts that you have followed")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using Argparse's BooleanOptionalAction with a True (?) default for better usability.

@@ -11,6 +12,11 @@
my_user_id = getenv('MY_USER_ID')
tweet_id = getenv('TWEET_ID')

parser = argparse.ArgumentParser()
parser.add_argument("-s", "--skip_following", help="Skip accounts that you have followed")
parser.add_argument("-i", "--ignore", nargs='+', type=str, help="ignore and skip block this usernames")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency and better grammar, I suggest "Skip blocking this username" as the help text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants