1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
11 return self.__class__.__name__.lower()
14 def description(self):
17 def AddCommandLineOptions(self, parser):
21 class ArgparseCommand(Command):
22 def ProcessCommandLine(self, parser, args):
26 raise NotImplementedError()
29 # TODO: Convert everything to argparse.
30 class OptparseCommand(Command):
33 def CreateParser(self):
34 return optparse.OptionParser('%%prog %s %s' % (self.name, self.usage))
36 def ProcessCommandLine(self, parser, options, args):
39 def Run(self, options, args):
40 raise NotImplementedError()