feat: sentences only mode
This commit is contained in:
4 files changed
+21
-7
No files matched your search
@@ -15,6 +15,7 @@ class Parameters:
|
||||
functions: bool = False
|
||||
source_sentences_path: str | None = None
|
||||
target_sentences_path: str | None = None
|
||||
sentences_only: bool = False
|
||||
verbose: bool = False
|
||||
quiet: bool = False
|
||||
|
||||
@@ -32,7 +33,6 @@ def parse_parameters(args: typing.Sequence[str]) -> Parameters:
|
||||
parser.add_argument(
|
||||
"-i",
|
||||
"--input",
|
||||
required=True,
|
||||
metavar="INPUT_FILE",
|
||||
dest="source_image_path",
|
||||
help="png 8x8 glyph map",
|
||||
@@ -85,6 +85,12 @@ def parse_parameters(args: typing.Sequence[str]) -> Parameters:
|
||||
dest="target_sentences_path",
|
||||
help="output sentences glsl file (default: build/{name}_sentences.glsl)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--sentences-only",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
default=default_values.verbose,
|
||||
help="generate only sentences from names (does not read input image)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-v",
|
||||
"--verbose",
|
||||
|
||||
Reference in new issue
Block a user