Mercurial > hg > config
comparison python/ymldiff.py @ 221:d213d21e371b
fix silly mistakes
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 08 May 2012 08:30:36 -0700 |
| parents | 192015ae3e4c |
| children |
comparison
equal
deleted
inserted
replaced
| 220:192015ae3e4c | 221:d213d21e371b |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 import datadiff | 3 import datadiff |
| 4 imoprt optparse | 4 import optparse |
| 5 import sys | 5 import sys |
| 6 import yaml | 6 import yaml |
| 7 | 7 |
| 8 def main(args=sys.argv[1:]): | 8 def main(args=sys.argv[1:]): |
| 9 usage = '%prog [options] from.yml to.yml' | 9 usage = '%prog [options] from.yml to.yml' |
| 10 parser = OptionParser(usage=usage) | 10 parser = optparse.OptionParser(usage=usage) |
| 11 options, args = parser.parse_args() | 11 options, args = parser.parse_args() |
| 12 if len(args) != 2: | 12 if len(args) != 2: |
| 13 parser.error("Please supply two .yml files") | 13 parser.error("Please supply two .yml files") |
| 14 | 14 |
| 15 # compare the output | 15 # compare the output |
