Skip to content

Commit ab93ee8

Browse files
committed
Move: argument.
1 parent 51b63a7 commit ab93ee8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmdcomp/app.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ def run(cls, args: list[str] | None = None) -> None:
2222
version=f"%(prog)s {__version__}",
2323
)
2424

25+
parser.add_argument(
26+
"--verbose",
27+
action=BooleanOptionalAction,
28+
help="output verbose log.",
29+
)
30+
2531
parser.add_argument(
2632
"--file",
2733
"-f",
@@ -45,12 +51,6 @@ def run(cls, args: list[str] | None = None) -> None:
4551
help="output file (Default=stdout).",
4652
)
4753

48-
parser.add_argument(
49-
"--verbose",
50-
action=BooleanOptionalAction,
51-
help="output verbose log.",
52-
)
53-
5454
space = parser.parse_args(args)
5555

5656
level = logging.DEBUG if space.verbose else logging.INFO

0 commit comments

Comments
 (0)