From 8156ff57a2ee04e4b317487e9f82937b60f8cc61 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 18 Jun 2020 20:56:18 +0300 Subject: [PATCH] add global verbosity --- flit.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flit.py b/flit.py index 512a05d..682bbec 100755 --- a/flit.py +++ b/flit.py @@ -35,6 +35,14 @@ def parse_opts(): action = _HelpAction, help = 'Show this help message and exit' ) + parser.add_argument( + '--verbose', '-v', + action = "store_true", + dest = "verbose", + default = False, + help = 'Increase verbosity' + ) + parser.add_argument( '--root', '-r', action = "store", @@ -155,7 +163,7 @@ if __name__ == '__main__': print(opts.root + "/" + new_name) if opts.command == "list" or opts.command == None: - list_folders(opts.root, opts.verbose) + list_folders(opts.root, opts.verbose == True) if opts.command == "del": del_due_folders()