Skip to content

Commit

Permalink
fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 25, 2023
1 parent 3fbc357 commit a09e3ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libvirtnbdbackup/argopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def addLogArgs(opt, prog):
)


def addLogColorArgs(opt, prog):
def addLogColorArgs(opt):
"""Option to enable or disable colored output"""
opt.add_argument(
"--nocolor",
Expand Down
2 changes: 1 addition & 1 deletion virtnbdbackup
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def main() -> None:
action="store_true",
help="Disable logging to stderr (default: %(default)s)",
)
argopt.addLogColorArgs(logopt, parser.prog)
argopt.addLogColorArgs(logopt)
debopt = parser.add_argument_group("Debug options")
debopt.add_argument(
"-q",
Expand Down
2 changes: 1 addition & 1 deletion virtnbdmap
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def main() -> None:
)
logopt = parser.add_argument_group("Logging options")
argopt.addLogArgs(logopt, parser.prog)
argopt.addLogColorArgs(logopt, parser.prog)
argopt.addLogColorArgs(logopt)
debopt = parser.add_argument_group("Debug options")
debopt.add_argument(
"-r",
Expand Down
2 changes: 1 addition & 1 deletion virtnbdrestore
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def main() -> None:
argopt.addRemoteArgs(remopt)
logopt = parser.add_argument_group("Logging options")
argopt.addLogArgs(logopt, parser.prog)
argopt.addLogColorArgs(logopt, parser.prog)
argopt.addLogColorArgs(logopt)
debopt = parser.add_argument_group("Debug options")
argopt.addDebugArgs(debopt)

Expand Down

0 comments on commit a09e3ed

Please sign in to comment.