quilt/cli/parser.py
def add_to_parser(self, subparsers):
        """
        Adds this SubParser to the subparsers created by
        argparse.ArgumentParser.add_subparsers method.

        @param subparsers Normally a _SubParsersAction instance created by
        argparse.ArgumentParser.add_subparsers method
        """
        parser = subparsers.add_parser(*self._get_args(), **self._get_kwargs())
        parser.set_defaults(**self.get_defaults())
        for name, group in self.base_argument_groups:
            group.add_to_parser(parser)
        for name, arg in self.base_arguments:
            arg.add_to_parser(parser)
        self.add_subparsers(parser)
def add_to_parser(self, subparsers):
        """
        Adds this SubParser to the subparsers created by
        argparse.ArgumentParser.add_subparsers method.

        @param subparsers Normally a _SubParsersAction instance created by
        argparse.ArgumentParser.add_subparsers method
        """
        parser = subparsers.add_parser(*self._get_args(), **self._get_kwargs())
        parser.set_defaults(**self.get_defaults())
        for name, group in self.base_argument_groups:
            group.add_to_parser(parser)
        for name, arg in self.base_arguments:
            arg.add_to_parser(parser)
        self.add_subparsers(parser)
Adds this SubParser to the subparsers created by
        argparse.ArgumentParser.add_subparsers method.

        @param subparsers Normally a _SubParsersAction instance created by
        argparse.ArgumentParser.add_subparsers method