Skip to content

Commit

Permalink
Add version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Jul 14, 2024
1 parent d515652 commit 28b1b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/instawebhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def discord_webhook_url(arg_value):

# Parse command line arguments
parser = ArgumentParser(
prog='instawebhooks',
prog='InstaWebhooks',
description='Monitor Instagram accounts for new posts and send them to a Discord webhook',
epilog='Documentation: https://github.com/RaenLua/InstaWebhooks')
parser.add_argument("instagram_username",
Expand All @@ -53,6 +53,7 @@ def discord_webhook_url(arg_value):
parser.add_argument("-i", "--refresh-interval",
help="time in seconds to wait before checking for new posts again",
type=int, default=3600)
parser.add_argument("--version", action="version", version="%(prog)s 0.0.1")
args = parser.parse_args()

# Set the logger to debug if verbose is enabled
Expand Down

0 comments on commit 28b1b06

Please sign in to comment.