Compare commits

...

2 Commits

Author SHA1 Message Date
Jeff Moe bfe3f959cc python client help stub doc 2023-09-21 15:53:47 -06:00
Jeff Moe 429b501381 input file for client 2023-09-21 15:53:34 -06:00
2 changed files with 27 additions and 0 deletions

View File

@ -215,6 +215,24 @@ Is such:
```
Client sends file and has no output.
Just test bash script.
Below is for the Python version that doesn't work yet.
Help:
```
$ ./sndid-client.py -h
usage: sndid-client.py [-h] [-i IP] [-p PORT] [-f FILE]
Run sndid-client
options:
-h, --help show this help message and exit
-i IP, --ip IP Server IP address (default 127.0.0.1)
-p PORT, --port PORT Server network port (default 9988)
-f FILE, --file FILE Input filename to process (default samples/mono.wav)
```
# Development

View File

@ -37,8 +37,17 @@ parser.add_argument(
required=False,
default="9988",
)
parser.add_argument(
"-f",
"--file",
help="Input filename to process (default samples/mono.wav)",
type=str,
required=False,
default="samples/mono.wav",
)
args = parser.parse_args()
IP = args.ip
PORT = args.port
FILE = args.file