Skip to content

Commit 186042e

Browse files
committed
use one webhook url in cli
1 parent 97c434e commit 186042e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

discord_webhook/__main__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ def main() -> bool:
99
parser = argparse.ArgumentParser(
1010
prog="discord_webhook", description="Trigger discord webhook(s)."
1111
)
12-
parser.add_argument(
13-
"-u",
14-
"--url",
15-
required=True,
16-
nargs="+",
17-
help="Webhook(s) url(s)",
18-
)
12+
parser.add_argument("-u", "--url", required=True, help="Webhook URL")
1913
parser.add_argument("-c", "--content", required=True, help="Message content")
2014
parser.add_argument(
2115
"--username", default=None, help="override the default username of the webhook"

0 commit comments

Comments
 (0)