Exemplo n.º 1
0
 def add_weight_arg(parser, required=True):
     write_num_argument(parser,
                        'weight',
                        'weight', "The "
                        "weight number of an SRV "
                        "record",
                        required=required)
Exemplo n.º 2
0
 def add_weight_arg(parser, required=True):
     write_num_argument(
         parser, 'weight', 'weight', "The " "weight number of an SRV "
         "record", required=required
     )
Exemplo n.º 3
0
 def add_port_argument(parser, required=True):
     write_num_argument(
         parser, 'port', 'port', "The target port of an SRV " "record",
         required=required
     )
Exemplo n.º 4
0
 def add_priority_arg(parser, required=True):
     write_num_argument(
         parser, 'priority', 'priority', "The priority number of a record",
         required=required
     )
Exemplo n.º 5
0
 def add_ttl_argument(parser, **kwargs):
     write_num_argument(
         parser, 'ttl', 'ttl', "The ttl of a record.", required=False
     )
 def add_number_argument(parser, required=required):
     write_num_argument(parser,
                        field_name,
                        field_name,
                        "A number number.",
                        required=required)
Exemplo n.º 7
0
 def add_port_argument(parser, required=True):
     write_num_argument(parser,
                        'port',
                        'port', "The target port of an SRV "
                        "record",
                        required=required)
Exemplo n.º 8
0
 def add_priority_arg(parser, required=True):
     write_num_argument(parser,
                        'priority',
                        'priority',
                        "The priority number of a record",
                        required=required)
Exemplo n.º 9
0
 def add_ttl_argument(parser, **kwargs):
     write_num_argument(parser,
                        'ttl',
                        'ttl',
                        "The ttl of a record.",
                        required=False)
Exemplo n.º 10
0
 def add_number_argument(parser, required=required):
     write_num_argument(
         parser, field_name, field_name, "A number number.",
         required=required
     )