Compare commits
6 Commits
0.3.0.post
...
0.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d5cbeed49 | |||
|
|
e95b59ae3d | ||
| 636316650e | |||
| bfcf65b6e7 | |||
| f39fd9cf44 | |||
|
|
dd45b1281f |
2
.project
2
.project
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>{{project_name}}</name>
|
||||
<name>dabdatasync</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
||||
@@ -92,7 +92,7 @@ class dabdatasync_args(Tap):
|
||||
self.command: Union[str, None] = cast(Union[str, None], self.command) # pylint: disable=attribute-defined-outside-init
|
||||
|
||||
|
||||
def fct_main(i_args: list[str]) -> None: # pylint: disable=too-many-branches,too-complex
|
||||
def fct_main(i_args: list[str]) -> None: # pylint: disable=too-many-branches,too-complex,too-many-statements
|
||||
"""CLI main function"""
|
||||
parser: dabdatasync_args = dabdatasync_args(prog=__Name__, description=__Summuary__)
|
||||
|
||||
@@ -104,13 +104,13 @@ def fct_main(i_args: list[str]) -> None: # pylint: disable=too-many-branches,to
|
||||
if args.help:
|
||||
print(parser.format_help())
|
||||
|
||||
for name, subparser in parser._subparsers.choices.items(): # type: ignore[union-attr]
|
||||
for name, subparser in parser._subparsers.choices.items(): # type: ignore[union-attr] # pylint: disable=protected-access
|
||||
print("=========================")
|
||||
print(f"Subparser {{{name}}}")
|
||||
print(subparser.format_help())
|
||||
|
||||
if args.help or args.version:
|
||||
exit(0)
|
||||
sys.exit(0)
|
||||
|
||||
logger.remove()
|
||||
if args.verbosity:
|
||||
|
||||
Reference in New Issue
Block a user