Skip to content

Commit 8a35645

Browse files
committed
chore: fix Tool.main override to pass args/kwargs down
Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent bb724ed commit 8a35645

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pkgdev/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
import logging
66
import os
77

8+
from pkgcore.repository import errors as repo_errors
89
from pkgcore.util import commandline
10+
from pkgcore.util.commandline import _mk_domain
911
from snakeoil.cli import arghparse
1012
from snakeoil.contexts import patch
1113
from snakeoil.klass import jit_attr_none
1214
from snakeoil.mappings import OrderedSet
13-
from pkgcore.repository import errors as repo_errors
14-
from pkgcore.util.commandline import _mk_domain
1515

1616
from . import const
1717

1818

1919
class Tool(commandline.Tool):
20-
def main(self):
20+
def main(self, *args, **kwargs):
2121
# suppress all pkgcore log messages
2222
logging.getLogger("pkgcore").setLevel(100)
23-
return super().main()
23+
return super().main(*args, **kwargs)
2424

2525

2626
class ConfigArg(argparse._StoreAction):

0 commit comments

Comments
 (0)