'Parse command-line arguments.'

def parse_args(self, argv=None):

    if (argv is None):
        argv = sys.argv
    min_args = 2
    if (len(argv) < min_args):
        self._usage_exit(argv)
    self.action = argv[1]
    if (self.action not in self.action_funcs):
        self._usage_exit(argv)
