update setup script
This commit is contained in:
parent
64a28233df
commit
c9fd9b04f3
|
@ -0,0 +1,5 @@
|
|||
d example.com
|
||||
s v2ray
|
||||
e email@domain.tld
|
||||
u 00000000-0000-0000-0000-000000000000
|
||||
p somepath
|
3
setup.py
3
setup.py
|
@ -16,6 +16,7 @@ def read_conf(f):
|
|||
f = open(f, "r")
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
line = line.strip()
|
||||
eline = line.split(' ')
|
||||
if len(eline) >= 2:
|
||||
ret[eline[0]] = eline[1]
|
||||
|
@ -43,7 +44,7 @@ def main():
|
|||
v_path = None
|
||||
|
||||
try:
|
||||
opts , args = getopt.getopt(sys.argv[1:], "hd:s:e:c:u:p:")
|
||||
opts , _ = getopt.getopt(sys.argv[1:], "hd:s:e:c:u:p:")
|
||||
except getopt.GetoptError as err:
|
||||
print(str(err))
|
||||
usage()
|
||||
|
|
Loading…
Reference in New Issue