perceval/backends/core/stackexchange.py
def setup_cmd_parser(cls):
        """Returns the StackExchange argument parser."""

        parser = BackendCommandArgumentParser(cls.BACKEND.CATEGORIES,
                                              from_date=True,
                                              token_auth=True,
                                              archive=True)

        # StackExchange options
        group = parser.parser.add_argument_group('StackExchange arguments')
        group.add_argument('--site', dest='site',
                           required=True,
                           help="StackExchange site")
        group.add_argument('--tagged', dest='tagged',
                           help="filter items by question Tag")
        group.add_argument('--max-questions', dest='max_questions',
                           type=int, default=MAX_QUESTIONS,
                           help="Maximum number of questions requested in the same query")

        return parser
def setup_cmd_parser(cls):
        parser = BackendCommandArgumentParser(cls.BACKEND.CATEGORIES,
                                              from_date=True,
                                              token_auth=True,
                                              archive=True)

        # StackExchange options
        group = parser.parser.add_argument_group('StackExchange arguments')
        group.add_argument('--site', dest='site',
                           required=True,
                           help="StackExchange site")
        group.add_argument('--tagged', dest='tagged',
                           help="filter items by question Tag")
        group.add_argument('--max-questions', dest='max_questions',
                           type=int, default=MAX_QUESTIONS,
                           help="Maximum number of questions requested in the same query")

        return parser
def setup_cmd_parser ( cls ) : parser = BackendCommandArgumentParser ( cls . BACKEND . CATEGORIES , from_date = True , token_auth = True , archive = True ) # StackExchange options group = parser . parser . add_argument_group ( 'StackExchange arguments' ) group . add_argument ( '--site' , dest = 'site' , required = True , help = "StackExchange site" ) group . add_argument ( '--tagged' , dest = 'tagged' , help = "filter items by question Tag" ) group . add_argument ( '--max-questions' , dest = 'max_questions' , type = int , default = MAX_QUESTIONS , help = "Maximum number of questions requested in the same query" ) return parser
Returns the StackExchange argument parser.
Returns the StackExchange argument parser .