diff --git a/update-record.py b/update-record.py index dbf4f68..e45e199 100755 --- a/update-record.py +++ b/update-record.py @@ -4,8 +4,6 @@ # author: Pascal Gollor (https://gitbucket.pgollor.de) # author: InterNetworX, info →AT→ inwx.de -############################################################################# -###### This is an example of how to use the inwx class ####### from inwx.inwx import domrobot#, prettyprint from inwx.configuration import get_account_data @@ -94,7 +92,7 @@ parser.add_argument('domain', metavar='domain', help='full domain like subdomain.example.com') parser.add_argument('content', metavar='content', nargs='?', default=None, help='ip or string to fill into sub domain entry') - parser.add_argument('-r', '--record-type', metavar='type', required=True, choices=['A', 'AAAA', 'TXT', 'CNAME'], help='record type (A, AAAA, TXT, CNAME)') + parser.add_argument('-r', '--record-type', metavar='type', required=True, choices=['A', 'AAAA', 'TXT', 'CNAME', 'TLSA'], help='record type (A, AAAA, TXT, CNAME, TLSA)') parser.add_argument('--delete', action='store_true', required=False, help='delete existing record') parser.add_argument('-c', '--config_file', metavar='path', default='./conf.cfg', help='path to configuration file') @@ -107,7 +105,7 @@ args = parser.parse_args() - # check if content is needed + # do some checks if (not args.delete and not args.content): raise ValueError("Missing content for domain entry.") # end if