summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-07-06 12:09:32 -0400
committerRaul Cuza <raulcuza@gmail.com>2011-07-06 13:38:00 -0400
commit8276b715e11c445f8aae0b62ee3da5847bf3ab21 (patch)
treede812368d2b61134a28a4878f664a1336a812144
parentc8f4173ac79691c6a2eb9fe59f755b4990227edf (diff)
downloadbcfg2-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-xtools/export2.py2
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())