Skip to content

Commit 41d76dc

Browse files
committed
comment out in development subcommand argparse defs
1 parent 67fa5f9 commit 41d76dc

File tree

1 file changed

+55
-48
lines changed

1 file changed

+55
-48
lines changed

lib/pathins/__main__.py

Lines changed: 55 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
import sys
66

77
from . import __version__
8-
from .direction import direction_run
9-
from .overlap import overlap_run
8+
9+
1010
from .path import path_run
11-
from .report import report_run
11+
12+
# from .direction import direction_run
13+
# from .overlap import overlap_run
14+
# from .report import report_run
1215

1316

1417
def main() -> None: # pragma: no cover
@@ -28,43 +31,43 @@ def run(argv) -> None:
2831
# -----------------------------
2932
# direction sub-command parser
3033
# -----------------------------
31-
parser_direction = subparsers.add_parser(
32-
"direction",
33-
help="Path direction inspection",
34-
description="Path direction inspection",
35-
)
36-
parser_direction.add_argument(
37-
"-v", "--version", action="version", version=f"pathins v{__version__}"
38-
)
39-
parser_direction.add_argument(
40-
"--nocolor", action="store_true", help="no ANSI color"
41-
)
42-
parser_direction.add_argument("fontpath", type=str, help="font file path")
43-
parser_direction.add_argument(
44-
"glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
45-
)
46-
parser_direction.set_defaults(func=direction_run)
34+
# parser_direction = subparsers.add_parser(
35+
# "direction",
36+
# help="Path direction inspection",
37+
# description="Path direction inspection",
38+
# )
39+
# parser_direction.add_argument(
40+
# "-v", "--version", action="version", version=f"pathins v{__version__}"
41+
# )
42+
# parser_direction.add_argument(
43+
# "--nocolor", action="store_true", help="no ANSI color"
44+
# )
45+
# parser_direction.add_argument("fontpath", type=str, help="font file path")
46+
# parser_direction.add_argument(
47+
# "glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
48+
# )
49+
# parser_direction.set_defaults(func=direction_run)
4750

4851
# -----------------------------
4952
# overlap sub-command parser
5053
# -----------------------------
51-
parser_overlap = subparsers.add_parser(
52-
"overlap", help="Path overlap inspection", description="Path overlap inspection"
53-
)
54-
parser_overlap.add_argument(
55-
"-v", "--version", action="version", version=f"pathins v{__version__}"
56-
)
57-
parser_overlap.add_argument(
58-
"--check",
59-
action="store_true",
60-
help="quick check for any overlaps with status code",
61-
)
62-
parser_overlap.add_argument("--nocolor", action="store_true", help="no ANSI color")
63-
parser_overlap.add_argument("fontpath", type=str, help="font file path")
64-
parser_overlap.add_argument(
65-
"glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
66-
)
67-
parser_overlap.set_defaults(func=overlap_run)
54+
# parser_overlap = subparsers.add_parser(
55+
# "overlap", help="Path overlap inspection", description="Path overlap inspection"
56+
# )
57+
# parser_overlap.add_argument(
58+
# "-v", "--version", action="version", version=f"pathins v{__version__}"
59+
# )
60+
# parser_overlap.add_argument(
61+
# "--check",
62+
# action="store_true",
63+
# help="quick check for any overlaps with status code",
64+
# )
65+
# parser_overlap.add_argument("--nocolor", action="store_true", help="no ANSI color")
66+
# parser_overlap.add_argument("fontpath", type=str, help="font file path")
67+
# parser_overlap.add_argument(
68+
# "glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
69+
# )
70+
# parser_overlap.set_defaults(func=overlap_run)
6871

6972
# -----------------------------
7073
# path sub-command parser
@@ -85,18 +88,22 @@ def run(argv) -> None:
8588
# -----------------------------
8689
# report sub-command parser
8790
# -----------------------------
88-
parser_report = subparsers.add_parser(
89-
"report", help="Path reporting", description="Path reporting"
90-
)
91-
parser_report.add_argument(
92-
"-v", "--version", action="version", version=f"pathins v{__version__}"
93-
)
94-
parser_report.add_argument("--nocolor", action="store_true", help="no ANSI color")
95-
parser_report.add_argument("fontpath", type=str, help="font file path")
96-
parser_report.add_argument(
97-
"glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
98-
)
99-
parser_report.set_defaults(func=report_run)
91+
# parser_report = subparsers.add_parser(
92+
# "report", help="Path reporting", description="Path reporting"
93+
# )
94+
# parser_report.add_argument(
95+
# "-v", "--version", action="version", version=f"pathins v{__version__}"
96+
# )
97+
# parser_report.add_argument("--nocolor", action="store_true", help="no ANSI color")
98+
# parser_report.add_argument("fontpath", type=str, help="font file path")
99+
# parser_report.add_argument(
100+
# "glyphname", type=str, help="glyph name (optional, default=all)", nargs="?"
101+
# )
102+
# parser_report.set_defaults(func=report_run)
103+
104+
# -----------------------------
105+
# Parse args
106+
# -----------------------------
100107

101108
args: argparse.Namespace = parser.parse_args(argv)
102109
# execute the default function assigned to the subcommand

0 commit comments

Comments
 (0)