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

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

        # Backend token is required
        action = parser.parser._option_string_actions['--api-token']
        action.required = True

        # Optional arguments
        group = parser.parser.add_argument_group('Groupsio arguments')
        group.add_argument('--mboxes-path', dest='mboxes_path',
                           help="Path where mbox files will be stored")
        group.add_argument('--no-verify', dest='verify',
                           action='store_false',
                           help="Value 'True' enable SSL verification")

        # Required arguments
        parser.parser.add_argument('group_name',
                                   help="Name of the group on Groups.io")

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

        # Backend token is required
        action = parser.parser._option_string_actions['--api-token']
        action.required = True

        # Optional arguments
        group = parser.parser.add_argument_group('Groupsio arguments')
        group.add_argument('--mboxes-path', dest='mboxes_path',
                           help="Path where mbox files will be stored")
        group.add_argument('--no-verify', dest='verify',
                           action='store_false',
                           help="Value 'True' enable SSL verification")

        # Required arguments
        parser.parser.add_argument('group_name',
                                   help="Name of the group on Groups.io")

        return parser
def setup_cmd_parser ( cls ) : parser = BackendCommandArgumentParser ( cls . BACKEND . CATEGORIES , from_date = True , token_auth = True ) # Backend token is required action = parser . parser . _option_string_actions [ '--api-token' ] action . required = True # Optional arguments group = parser . parser . add_argument_group ( 'Groupsio arguments' ) group . add_argument ( '--mboxes-path' , dest = 'mboxes_path' , help = "Path where mbox files will be stored" ) group . add_argument ( '--no-verify' , dest = 'verify' , action = 'store_false' , help = "Value 'True' enable SSL verification" ) # Required arguments parser . parser . add_argument ( 'group_name' , help = "Name of the group on Groups.io" ) return parser
Returns the Groupsio argument parser.
Returns the Groupsio argument parser .