5
5
import sys
6
6
7
7
from . import __version__
8
- from . direction import direction_run
9
- from . overlap import overlap_run
8
+
9
+
10
10
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
12
15
13
16
14
17
def main () -> None : # pragma: no cover
@@ -28,43 +31,43 @@ def run(argv) -> None:
28
31
# -----------------------------
29
32
# direction sub-command parser
30
33
# -----------------------------
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)
47
50
48
51
# -----------------------------
49
52
# overlap sub-command parser
50
53
# -----------------------------
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)
68
71
69
72
# -----------------------------
70
73
# path sub-command parser
@@ -85,18 +88,22 @@ def run(argv) -> None:
85
88
# -----------------------------
86
89
# report sub-command parser
87
90
# -----------------------------
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
+ # -----------------------------
100
107
101
108
args : argparse .Namespace = parser .parse_args (argv )
102
109
# execute the default function assigned to the subcommand
0 commit comments