Add remaining scripts to Debian package
This commit is contained in:
parent
e6792fc8e9
commit
02c7ebc9cd
20 changed files with 480 additions and 28 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue