diff options
author | Raul Cuza <raulcuza@gmail.com> | 2011-07-06 12:09:32 -0400 |
---|---|---|
committer | Raul Cuza <raulcuza@gmail.com> | 2011-07-06 13:38:00 -0400 |
commit | 8276b715e11c445f8aae0b62ee3da5847bf3ab21 (patch) | |
tree | de812368d2b61134a28a4878f664a1336a812144 | |
parent | c8f4173ac79691c6a2eb9fe59f755b4990227edf (diff) | |
download | bcfg2-8276b715e11c445f8aae0b62ee3da5847bf3ab21.tar.gz bcfg2-8276b715e11c445f8aae0b62ee3da5847bf3ab21.tar.bz2 bcfg2-8276b715e11c445f8aae0b62ee3da5847bf3ab21.zip |
Create verbose option for running commands.
If export2.py -P -v is run, then the diff will be shown.
-rwxr-xr-x | tools/export2.py | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |