Package: wordwarvi Version: 1.00+dfsg1-3+b1 Severity: wishlist Tags: patch Dear Maintainer,
I'm attaching a simple patch which: - adds --help option to get rid of "unrecognized option '--help'" message - adds "easy" to --difficulty instructions Best Regards, Andrej Mernik -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.12.0-0.bpo.2-amd64 (SMP w/8 CPU cores) Locale: LANG=sl_SI.UTF-8, LC_CTYPE=sl_SI.UTF-8 (charmap=UTF-8), LANGUAGE=sl (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages wordwarvi depends on: ii libasound2 1.1.3-5 ii libc6 2.24-11+deb9u1 ii libglib2.0-0 2.50.3-2 ii libgtk2.0-0 2.24.31-2 ii libportaudio2 19.6.0-1 ii libvorbisfile3 1.3.5-4 ii wordwarvi-sound 1.00+dfsg1-3 wordwarvi recommends no packages. wordwarvi suggests no packages. -- no debconf information
--- wordwarvi.c.orig 2011-06-09 06:06:22.000000000 +0200 +++ wordwarvi.c 2017-10-08 12:23:27.288699308 +0200 @@ -13106,6 +13106,7 @@ { "squareexplosions", 0, NULL, 23 }, { "explosionfactor", 1, NULL, 24 }, { "xmas", 0, NULL, 25 }, + { "help", 0, NULL, 26 }, #ifdef LEVELWARP { "levelwarp", 1, NULL, 15 }, #endif @@ -13117,10 +13118,11 @@ fprintf(stderr, "wordwarvi: usage:\n"); fprintf(stderr, "wordwarvi [options]\n"); fprintf(stderr, "Options:\n"); + fprintf(stderr, "--help Show this help.\n"); fprintf(stderr, "--bw Render in black and white.\n"); fprintf(stderr, "--blueprint Render in the style of a blueprint.\n"); fprintf(stderr, "--brightsparks Render sparks brighter than usual.\n"); - fprintf(stderr, "--difficulty Sets difficulty level: medium, hard, insane, batshit-insane.\n"); + fprintf(stderr, "--difficulty Sets difficulty level: easy, medium, hard, insane, batshit-insane.\n"); fprintf(stderr, "--explosionfactor Multiplier for number of sparks in explosions.\n"); fprintf(stderr, "--framerate n Attempt to render the game at n frames per second.\n"); fprintf(stderr, "--fullscreen Render the game in full screen mode.\n"); @@ -13867,6 +13869,7 @@ } case 25: /* --xmas */ xmas_mode = !xmas_mode; break; + case 26: /* help. */ usage(); case '?':usage(); /* exits. */ default:printf("Unexpected return value %d from getopt_long_only()\n", rc); exit(0);