|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
import argparse
|
|
|
|
|
from venv import create
|
|
|
|
|
|
|
|
|
|
from main import main
|
|
|
|
|
from setup_program import setup
|
|
|
|
@ -9,7 +8,7 @@ from utils.console import print_substep
|
|
|
|
|
def program_options():
|
|
|
|
|
|
|
|
|
|
description = """\
|
|
|
|
|
DESCRIPTION HERE.
|
|
|
|
|
Create Reddit Videos with one command.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
parser = argparse.ArgumentParser(
|
|
|
|
@ -18,45 +17,38 @@ def program_options():
|
|
|
|
|
description=description
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"-c",
|
|
|
|
|
"--create",
|
|
|
|
|
help="Create a video.",
|
|
|
|
|
"-c", "--create",
|
|
|
|
|
help="Create a video (uses the defaults).",
|
|
|
|
|
action="store_true"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument( # only accepts the name of subreddit, not links.
|
|
|
|
|
"-s",
|
|
|
|
|
"--subreddit",
|
|
|
|
|
help="Use another sub-reddit.",
|
|
|
|
|
"-s", "--subreddit",
|
|
|
|
|
help="Specify a subreddit.",
|
|
|
|
|
action="store"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"-b",
|
|
|
|
|
"--background",
|
|
|
|
|
help="Use another video background for video (accepts link).",
|
|
|
|
|
"-b", "--background",
|
|
|
|
|
help="Specify a video background for video (accepts link and file).",
|
|
|
|
|
action="store"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"-f",
|
|
|
|
|
"--filename",
|
|
|
|
|
help="Set a filename for the video.",
|
|
|
|
|
"-f", "--filename",
|
|
|
|
|
help="Specify a filename for the video.",
|
|
|
|
|
action="store"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"-t",
|
|
|
|
|
"--thread",
|
|
|
|
|
help="Use the given thread link instead of randomized.",
|
|
|
|
|
"-t", "--thread",
|
|
|
|
|
help="Use the given thread link instead of random.",
|
|
|
|
|
action="store"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"-n",
|
|
|
|
|
"--number",
|
|
|
|
|
help="Number of comments to include.",
|
|
|
|
|
"-n", "--number",
|
|
|
|
|
help="Specify number of comments to include in the video.",
|
|
|
|
|
action="store"
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"--setup",
|
|
|
|
|
"--setup",
|
|
|
|
|
help="Setup the program.",
|
|
|
|
|
"--setup", "--setup",
|
|
|
|
|
help="(Re)setup the program.",
|
|
|
|
|
action="store_true"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|