예제 #1
0
 def add_weight_arg(parser, required=True):
     write_num_argument(parser,
                        'weight',
                        'weight', "The "
                        "weight number of an SRV "
                        "record",
                        required=required)
예제 #2
0
 def add_weight_arg(parser, required=True):
     write_num_argument(
         parser, 'weight', 'weight', "The " "weight number of an SRV "
         "record", required=required
     )
예제 #3
0
 def add_port_argument(parser, required=True):
     write_num_argument(
         parser, 'port', 'port', "The target port of an SRV " "record",
         required=required
     )
예제 #4
0
 def add_priority_arg(parser, required=True):
     write_num_argument(
         parser, 'priority', 'priority', "The priority number of a record",
         required=required
     )
예제 #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)
예제 #7
0
 def add_port_argument(parser, required=True):
     write_num_argument(parser,
                        'port',
                        'port', "The target port of an SRV "
                        "record",
                        required=required)
예제 #8
0
 def add_priority_arg(parser, required=True):
     write_num_argument(parser,
                        'priority',
                        'priority',
                        "The priority number of a record",
                        required=required)
예제 #9
0
 def add_ttl_argument(parser, **kwargs):
     write_num_argument(parser,
                        'ttl',
                        'ttl',
                        "The ttl of a record.",
                        required=False)
예제 #10
0
 def add_number_argument(parser, required=required):
     write_num_argument(
         parser, field_name, field_name, "A number number.",
         required=required
     )