mirror of
https://github.com/daknuett/licor
synced 2024-07-20 12:15:24 +00:00
updated main script
This commit is contained in:
parent
e170f25508
commit
7587c69940
|
@ -37,7 +37,7 @@
|
||||||
from .main import (list_this_path, list_all, list_db,
|
from .main import (list_this_path, list_all, list_db,
|
||||||
print_uncommented_line_based,
|
print_uncommented_line_based,
|
||||||
print_uncommented_block_based,
|
print_uncommented_block_based,
|
||||||
print_template_options)
|
print_template_options, insert_templates_all)
|
||||||
import docopt, datetime, sys
|
import docopt, datetime, sys
|
||||||
|
|
||||||
usage = '''\
|
usage = '''\
|
||||||
|
@ -45,10 +45,10 @@ usage = '''\
|
||||||
Insert license/copyright/warranty disclaimer to source files.
|
Insert license/copyright/warranty disclaimer to source files.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
licor list-db [<path>]
|
licor list-db [<path>] [options]
|
||||||
licor list-all [<path>]
|
licor list-all [<path>] [options]
|
||||||
licor list-path [<path>]
|
licor list-path [<path>] [options]
|
||||||
licor list-templates
|
licor list-templates [options]
|
||||||
licor print-templ <format> [options]
|
licor print-templ <format> [options]
|
||||||
licor insert-header <format> [<path>] [options]
|
licor insert-header <format> [<path>] [options]
|
||||||
|
|
||||||
|
@ -174,6 +174,9 @@ if( __name__ == "__main__"):
|
||||||
except:
|
except:
|
||||||
print("Failed to convert {} to int".format(args["--pad-to"]))
|
print("Failed to convert {} to int".format(args["--pad-to"]))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
method = args["--format"]
|
||||||
|
if(not method):
|
||||||
|
method = "line"
|
||||||
|
|
||||||
path = args["<path>"]
|
path = args["<path>"]
|
||||||
ignore_paths = args["--ignore-paths"].split(",")
|
ignore_paths = args["--ignore-paths"].split(",")
|
||||||
|
@ -182,4 +185,4 @@ if( __name__ == "__main__"):
|
||||||
modifiers, data, args["--comment-start"], args["--comment-stop"],
|
modifiers, data, args["--comment-start"], args["--comment-stop"],
|
||||||
form, method = method, border = args["--border"], fancy = args["--fancy"],
|
form, method = method, border = args["--border"], fancy = args["--fancy"],
|
||||||
after_comment = after_comment, pad_to = pad_to, ignore_db = args["--ignore-db"],
|
after_comment = after_comment, pad_to = pad_to, ignore_db = args["--ignore-db"],
|
||||||
confirm = args["--confirmation"])
|
confirm = args["--confirm"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user