rewrite done

This commit is contained in:
2020-05-12 18:13:42 -04:00
parent 262a2be385
commit bb4055c87f
6 changed files with 63 additions and 323 deletions

View File

@@ -10,14 +10,15 @@ def parseArgs():
help = ('If specified, use the RFC1918 IP address assigned to this machine instead of the WAN '
'IP (necessary if this machine is behind NAT)'))
args.add_argument('-c', '--config',
dest = 'conf',
default = '~/.config/he_tunnelbroker.ini',
help = ('The path to the config. '
'Default: ~/.config/he_tunnelbroker.ini'))
dest = 'conf_xml',
default = '~/.config/he_tunnelbroker.xml',
help = ('The path to the config. See example.tunnelbroker.xml'
'Default: ~/.config/he_tunnelbroker.xml'))
args.add_argument('-t', '--tunnel-id',
dest = 'tun_id',
type = int,
help = ('The tunnel profile ID/name to use in -c/--config. '
'Default is to use the first one found.'))
'Default is to use the first one found'))
args.add_argument('-u', '--no-update',
dest = 'update',
action = 'store_false',