mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-31 23:29:21 +02:00
Fix client parameter
This commit is contained in:
parent
550d4cc055
commit
65d1e3873a
1 changed files with 3 additions and 2 deletions
|
@ -1016,7 +1016,7 @@ if __name__ == '__main__':
|
|||
try:
|
||||
(opts, args) = getopt.getopt(sys.argv[1:], 'dh:p:v',
|
||||
['help', 'bus-name=',
|
||||
'debug', 'host=', 'client='
|
||||
'debug', 'host=', 'client=',
|
||||
'port=', 'version'])
|
||||
except getopt.GetoptError as ex:
|
||||
(msg, opt) = ex.args
|
||||
|
@ -1026,6 +1026,7 @@ if __name__ == '__main__':
|
|||
sys.exit(2)
|
||||
|
||||
for (opt, arg) in opts:
|
||||
print(f"opt: {opt}, arg: {arg}")
|
||||
if opt in ['--help']:
|
||||
usage(params)
|
||||
sys.exit()
|
||||
|
@ -1038,7 +1039,7 @@ if __name__ == '__main__':
|
|||
elif opt in ['-p', '--port']:
|
||||
params['port'] = int(arg)
|
||||
elif opt in ['--client']:
|
||||
params['client'] = int(arg)
|
||||
params['client'] = arg
|
||||
elif opt in ['-v', '--version']:
|
||||
v = __version__
|
||||
if __git_version__:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue