Add remaining scripts to Debian package

This commit is contained in:
Michael Hansen 2022-04-11 10:33:43 -04:00
commit 02c7ebc9cd
20 changed files with 480 additions and 28 deletions

View file

@ -472,9 +472,11 @@ def print_voices(state: CommandLineInterfaceState):
# -----------------------------------------------------------------------------
def get_args():
def get_args(argv=None):
"""Parse command-line arguments"""
parser = argparse.ArgumentParser(prog=_PACKAGE)
parser = argparse.ArgumentParser(
prog=_PACKAGE, description="Mimic 3 command-line interface"
)
parser.add_argument(
"text", nargs="*", help="Text to convert to speech (default: stdin)"
)
@ -584,7 +586,7 @@ def get_args():
"--debug", action="store_true", help="Print DEBUG messages to the console"
)
return parser.parse_args()
return parser.parse_args(args=argv)
# -----------------------------------------------------------------------------