From 7587c699408804a48fb6ec5e529ad00cd2f8a3ea Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Thu, 28 Dec 2017 00:23:45 +0100 Subject: [PATCH] updated main script --- licor/__main__.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/licor/__main__.py b/licor/__main__.py index e519113..7498b5f 100644 --- a/licor/__main__.py +++ b/licor/__main__.py @@ -37,7 +37,7 @@ from .main import (list_this_path, list_all, list_db, print_uncommented_line_based, print_uncommented_block_based, - print_template_options) + print_template_options, insert_templates_all) import docopt, datetime, sys usage = '''\ @@ -45,10 +45,10 @@ usage = '''\ Insert license/copyright/warranty disclaimer to source files. Usage: - licor list-db [] - licor list-all [] - licor list-path [] - licor list-templates + licor list-db [] [options] + licor list-all [] [options] + licor list-path [] [options] + licor list-templates [options] licor print-templ [options] licor insert-header [] [options] @@ -174,6 +174,9 @@ if( __name__ == "__main__"): except: print("Failed to convert {} to int".format(args["--pad-to"])) sys.exit(1) + method = args["--format"] + if(not method): + method = "line" path = args[""] ignore_paths = args["--ignore-paths"].split(",") @@ -182,4 +185,4 @@ if( __name__ == "__main__"): modifiers, data, args["--comment-start"], args["--comment-stop"], form, method = method, border = args["--border"], fancy = args["--fancy"], after_comment = after_comment, pad_to = pad_to, ignore_db = args["--ignore-db"], - confirm = args["--confirmation"]) + confirm = args["--confirm"])