Created
March 31, 2017 17:17
-
-
Save akloster/20ab96fd9f21f22e182b012515e42350 to your computer and use it in GitHub Desktop.
Revisions
-
akloster created this gist
Mar 31, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Parse arguments arguments = sys.argv[sys.argv.index("--")+1:] parser = argparse.ArgumentParser(description="Create captions") parser.add_argument('--template') parser.add_argument('--text') parser.add_argument('--output') args = parser.parse_args(arguments) text = args.text output = args.output template = args.template