def run(self, args): action = self.flags.do if (action is None) and (len(args) >= 1) and (args[0] in _ACTIONS): action = args[0] args = args[1:] if action is None: print("Must specify an action to perform with {} [--do=]action". format(base.get_program_name())) return os.EX_USAGE repo = maven_repo.MavenRepository( local=self.flags.local, remotes=self.flags.remotes.split(","), ) action_class = _ACTIONS[action] cli = action_class(repo=repo) return cli(args)
def run(self, args): action = self.flags.do if (action is None) and (len(args) >= 1) and (args[0] in _ACTIONS): action = args[0] args = args[1:] if action is None: print("Must specify an action to perform with {} [--do=]action" .format(base.get_program_name())) return os.EX_USAGE repo = maven_repo.MavenRepository( local=self.flags.local, remotes=self.flags.remotes.split(","), ) action_class = _ACTIONS[action] cli = action_class(repo=repo) return cli(args)
def Main(args): cli = CLI() return cli(args)