diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-28 23:12:26 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-28 23:12:26 (EDT) |
commit | a66f3991715861e1ea6bf5d80df410dc4140fd32 (patch) | |
tree | b8f6c67e3f5ae0b0aac2e5c79c1b50d191111003 /src/main.c | |
parent | ee4c4798715680d091f1bfcf561ce8d747f5088e (diff) |
s_client: Stub
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -19,8 +19,24 @@ * along with wolfssl-util. If not, see <http://www.gnu.org/licenses/>. */ +#include <stdio.h> +#include <string.h> + +#include "commands.h" + +static void +usage(FILE *stream, const char *program_name) +{ + fprintf(stream, "Usage: %s s_client [options]\n", program_name); +} + int main(int argc, char **argv) { - return 0; + if (argc < 2 || strcmp(argv[1], "s_client") != 0) { + usage(stderr, argv[0]); + return 1; + } + + return s_client(argc - 2, argv + 2); } |