From d5d858a043da9ebddf799bf41e64b842429068a7 Mon Sep 17 00:00:00 2001 From: tth Date: Fri, 9 Oct 2020 23:35:01 +0200 Subject: [PATCH] expand -h option --- specific/Makefile | 2 ++ specific/joy2laser.c | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/specific/Makefile b/specific/Makefile index e9f3259..01d215d 100644 --- a/specific/Makefile +++ b/specific/Makefile @@ -3,6 +3,8 @@ OPTS = -Wall -g -DDEBUG_LEVEL=0 +all: joy2laser + laserblast.o: laserblast.c Makefile gcc -c ${OPTS} $< diff --git a/specific/joy2laser.c b/specific/joy2laser.c index 31d0f92..e2bd7a9 100644 --- a/specific/joy2laser.c +++ b/specific/joy2laser.c @@ -75,7 +75,14 @@ exit(1); int help(int k) { puts("HELP ME !"); -return 0; +puts("\t-p NNN\t\tlocal listening port"); +puts("\t-R a.b.c.d\tremote host"); +puts("\t-P NNN\t\tremote port"); +puts("\t-L N\t\tlaser number"); +puts("\t-S N\t\tscene number"); +puts("\t-v\t\tincrease verbosity"); + +return 1; } /* ------------------------------------------------------------------- */ int main(int argc, char *argv[])