Mercurial > treepkg > treepkg
comparison bin/treepkginfo.py @ 415:2d31eea39f70 treepkg-status
fixed some typos
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 26 Jul 2010 09:42:07 +0000 |
parents | 94a6ae627b31 |
children |
comparison
equal
deleted
inserted
replaced
414:e0539b483b04 | 415:2d31eea39f70 |
---|---|
18 parser = create_parser() | 18 parser = create_parser() |
19 parser.set_defaults(newest=-1) | 19 parser.set_defaults(newest=-1) |
20 parser.add_option("--newest", type="int", | 20 parser.add_option("--newest", type="int", |
21 help=("Number of newest revisions to list.")) | 21 help=("Number of newest revisions to list.")) |
22 parser.add_option("--only-successful", action="store_true", | 22 parser.add_option("--only-successful", action="store_true", |
23 help=("Show only successful builds", dest="success")) | 23 help=("Show only successful builds"), dest="success") |
24 parser.add_option("--pretty", action="store_true", help=("Show XML pretty" | 24 parser.add_option("--pretty", action="store_true", help=("Show XML pretty" |
25 " output.")) | 25 " output.")) |
26 | 26 |
27 | 27 |
28 return parser.parse_args() | 28 return parser.parse_args() |
29 | 29 |
30 def main(): | 30 def main(): |
31 options, args = parse_commandline() | 31 options, args = parse_commandline() |
32 | 32 |
33 tpkginfo = status.TreepkgInfo(options.config_file, options.newest, | 33 tpkginfo = status.TreepkgInfo(options.config_file, options.newest, |
34 option.success) | 34 options.success) |
35 | 35 |
36 if options.pretty: | 36 if options.pretty: |
37 print tpkginfo.toxml().toprettyxml() | 37 print tpkginfo.toxml().toprettyxml() |
38 else: | 38 else: |
39 print tpkginfo.toxml().toxml() | 39 print tpkginfo.toxml().toxml() |