implemented verbosity, added 5th level and now can see how many plays per playbooko if -vvvvv

This commit is contained in:
Brian Coca
2015-04-04 15:54:54 -04:00
parent 5531b84360
commit b1e6aaa790
4 changed files with 13 additions and 10 deletions

View File

@@ -72,6 +72,7 @@ class Cli(object):
parser.print_help()
sys.exit(1)
display.verbosity = options.verbosity
validate_conflicts(parser,options)
return (options, args)
@@ -109,7 +110,7 @@ class Cli(object):
if options.listhosts:
for host in hosts:
self.display(' %s' % host.name)
self.display.display(' %s' % host.name)
sys.exit(0)
if ((options.module_name == 'command' or options.module_name == 'shell') and not options.module_args):
@@ -163,7 +164,7 @@ class Cli(object):
if __name__ == '__main__':
display = Display()
#display.display(" ".join(sys.argv), log_only=True)
#display.display(" ".join(sys.argv))
try:
cli = Cli(display=display)

View File

@@ -53,6 +53,7 @@ def main(display, args):
parser.print_help(file=sys.stderr)
return 1
display.verbosity = options.verbosity
validate_conflicts(parser,options)
# Note: slightly wrong, this is written so that implicit localhost
@@ -154,7 +155,7 @@ def main(display, args):
if __name__ == "__main__":
display = Display()
display.display(" ".join(sys.argv), log_only=True)
#display.display(" ".join(sys.argv), log_only=True)
try:
sys.exit(main(display, sys.argv[1:]))