From 8276b715e11c445f8aae0b62ee3da5847bf3ab21 Mon Sep 17 00:00:00 2001 From: Raul Cuza Date: Wed, 6 Jul 2011 12:09:32 -0400 Subject: Create verbose option for running commands. If export2.py -P -v is run, then the diff will be shown. --- tools/export2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/export2.py b/tools/export2.py index 17e732bf6..6e0e2787e 100755 --- a/tools/export2.py +++ b/tools/export2.py @@ -216,6 +216,8 @@ def main(argv=None): else: for cmd in commando_orders: output = run(commando[cmd])[0].strip() + if options.verbose: + print output if __name__ == '__main__': sys.exit(main()) -- cgit v1.2.3-1-g7c22