removed unncessary parameters and include the function calls

pull/280/head
iaacornus 3 years ago
parent f7780a05f1
commit 64630b423b
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -1,5 +1,8 @@
import argparse import argparse
from main import main
from utils.console import print_substep
def program_options(): def program_options():
description = """\ description = """\
@ -17,35 +20,32 @@ def program_options():
help="Create a video.", help="Create a video.",
action="store_true" action="store_true"
) )
# this one accepts link as input, as well as already downloaded video,
# defaults to the minecraft video.
parser.add_argument(
"-b",
"--background",
help="Use another video background for video (accepts link).",
action="store"
)
parser.add_argument( # only accepts the name of subreddit, not links. parser.add_argument( # only accepts the name of subreddit, not links.
"-S", "-S",
"--subreddit", "--subreddit",
help="Use another sub-reddit.", help="Use another sub-reddit.",
action="store" action="store"
) )
# show most of the background processes of the program # this one accepts link as input, defaults to the minecraft video
# does not accept file or already downloaded background yet.
parser.add_argument( parser.add_argument(
"-v", "-b",
"--verbose", "--background",
help="Show the processes of program.", help="Use another video background for video (accepts link).",
action="store_true" action="store"
) )
args = parser.parse_args() args = parser.parse_args()
try: try:
... if args.create:
main(args.subreddit, args.background)
else:
print_substep("Error occured!", style="bold red")
raise SystemExit()
except ( except (
ConnectionError, ConnectionError,
KeyboardInterrupt KeyboardInterrupt,
): ):
... ...

Loading…
Cancel
Save