Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
remove unnecessary nargs
Browse files Browse the repository at this point in the history
  • Loading branch information
nihilok committed Feb 16, 2022
1 parent 468e48c commit 1a3c31b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions domains_api/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __call__(self, parser, namespace, values, option_string=None):
description=f"Domains DDNS API version {__VERSION__}", prog="domains-api"
)
parser.add_argument(
"-i", "--ip", nargs=0, action=CLIAction, help="show current external IP address"
"-i", "--ip", action=CLIAction, help="show current external IP address"
)
parser.add_argument(
"-l",
Expand Down Expand Up @@ -54,7 +54,6 @@ def __call__(self, parser, namespace, values, option_string=None):
"-d",
"--domain",
action=CLIAction,
nargs=0,
help="show the current domain",
)
parser.add_argument(
Expand All @@ -75,7 +74,6 @@ def __call__(self, parser, namespace, values, option_string=None):
"-v",
"--version",
action=CLIAction,
nargs=0,
help="show the current version",
)

Expand Down

0 comments on commit 1a3c31b

Please sign in to comment.