Browse Source

expand -h option

master
tth 1 year ago
parent
commit
d5d858a043
2 changed files with 10 additions and 1 deletions
  1. +2
    -0
      specific/Makefile
  2. +8
    -1
      specific/joy2laser.c

+ 2
- 0
specific/Makefile View File

@ -3,6 +3,8 @@
OPTS = -Wall -g -DDEBUG_LEVEL=0
all: joy2laser
laserblast.o: laserblast.c Makefile
gcc -c ${OPTS} $<


+ 8
- 1
specific/joy2laser.c View File

@ -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[])


Loading…
Cancel
Save