client in python stub
parent
25c7ae54fe
commit
de0bc18bec
|
@ -0,0 +1,44 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
sndid-client
|
||||
|
||||
Copyright 2023, Jeff Moe <moe@spacecruft.org>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(description="Run sndid-client")
|
||||
parser.add_argument(
|
||||
"-i",
|
||||
"--ip",
|
||||
help="Server IP address (default 127.0.0.1)",
|
||||
type=str,
|
||||
required=False,
|
||||
default="127.0.0.1",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-p",
|
||||
"--port",
|
||||
help="Server network port (default 9988)",
|
||||
type=int,
|
||||
required=False,
|
||||
default="9988",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
IP = args.ip
|
||||
PORT = args.port
|
||||
|
Loading…
Reference in New Issue