client: check and error out on exceeding number of command line args to pass
Also cleanup up the handling of them, using a flag to know which
options to handle locally vs remotely.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.h b/server.h
index 891b3a3..3d1d79c 100644
--- a/server.h
+++ b/server.h
@@ -87,7 +87,7 @@
extern int fio_clients_send_ini(const char *);
extern int fio_handle_clients(void);
extern void fio_client_add(const char *);
-extern void fio_client_add_cmd_option(const char *, const char *);
+extern int fio_client_add_cmd_option(const char *, const char *);
extern int fio_recv_data(int sk, void *p, unsigned int len);
extern int fio_send_data(int sk, const void *p, unsigned int len);