summaryrefslogtreecommitdiffstats
path: root/subcmds/diffmanifests.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/diffmanifests.py')
-rw-r--r--subcmds/diffmanifests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/diffmanifests.py b/subcmds/diffmanifests.py
index cae776a7..b999699e 100644
--- a/subcmds/diffmanifests.py
+++ b/subcmds/diffmanifests.py
@@ -176,10 +176,11 @@ synced and their revisions won't be found.
176 self.printText(log) 176 self.printText(log)
177 self.out.nl() 177 self.out.nl()
178 178
179 def Execute(self, opt, args): 179 def ValidateOptions(self, opt, args):
180 if not args or len(args) > 2: 180 if not args or len(args) > 2:
181 self.Usage() 181 self.OptionParser.error('missing manifests to diff')
182 182
183 def Execute(self, opt, args):
183 self.out = _Coloring(self.manifest.globalConfig) 184 self.out = _Coloring(self.manifest.globalConfig)
184 self.printText = self.out.nofmt_printer('text') 185 self.printText = self.out.nofmt_printer('text')
185 if opt.color: 186 if opt.color: