Update and rearrange use syntax and version information.
authorDavid Griffith <dave@661.org>
Wed, 22 Feb 2017 11:42:51 +0000 (03:42 -0800)
committerDavid Griffith <dave@661.org>
Wed, 22 Feb 2017 11:42:51 +0000 (03:42 -0800)
Makefile
src/curses/ux_init.c

index 1d7a865a1ae8447adb454adc00c9d33b344b8cb3..83987a76d901790ec3ffe6fa41da53056c54b46c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -320,6 +320,7 @@ hash:
 ifneq ($(and $(wildcard .git),$(shell which git)),)
        @echo "Creating $(COMMON_DIR)/git_hash.h"
        @echo "#define GIT_HASH \"$$(git rev-parse HEAD)\"" > $(COMMON_DIR)/git_hash.h
+       @echo "#define GIT_HASH_SHORT \"$$(git rev-parse HEAD|head -c7 -)\"" >> $(COMMON_DIR)/git_hash.h
        @echo "#define GIT_TAG \"$$(git describe --tags)\"" >> $(COMMON_DIR)/git_hash.h
        @echo "#define GIT_BRANCH \"$$(git rev-parse --abbrev-ref HEAD)\"" >> $(COMMON_DIR)/git_hash.h
 else
index d3df35a401e5742d5383275d5b2b5387f095b412..a998e5607ea20a22f26bdc77ae58b4f3bcf73f8e 100644 (file)
@@ -59,21 +59,21 @@ static void sigint_handler(int);
 
 #define INFORMATION "\
 An interpreter for all Infocom and other Z-Machine games.\n\
-Complies with standard 1.0 of Graham Nelson's specification.\n\
 \n\
 Syntax: frotz [options] story-file\n\
-  -a   watch attribute setting    \t -O   watch object locating\n\
-  -A   watch attribute testing    \t -p   plain ASCII output only\n\
-  -b <colorname> background color \t -P   alter piracy opcode\n\
-  -c # context lines              \t -q   quiet (disable sound effects)\n\
-  -d   disable color              \t -r # right margin\n\
-  -e   enable sound               \t -R <filename> load this save file\n\
-  -f <colorname> foreground color \t -s # random number seed value\n\
-  -F   Force color mode           \t -S # transcript width\n\
-  -h # screen height              \t -t   set Tandy bit\n\
-  -i   ignore fatal errors        \t -u # slots for multiple undo\n\
+  -a   watch attribute setting    \t -p   plain ASCII output only\n\
+  -A   watch attribute testing    \t -P   alter piracy opcode\n\
+  -b <colorname> background color \t -q   quiet (disable sound effects)\n\
+  -c # context lines              \t -r # right margin\n\
+  -d   disable color              \t -R <filename> load this save file\n\
+  -e   enable sound               \t -s # random number seed value\n\
+  -f <colorname> foreground color \t -S # transcript width\n\
+  -F   Force color mode           \t -t   set Tandy bit\n\
+  -h # screen height              \t -u # slots for multiple undo\n\
+  -i   ignore fatal errors        \t -v   show version information\n\
   -l # left margin                \t -w # screen width\n\
-  -o   watch object movement     \t -x   expand abbreviations g/x/z\n"
+  -o   watch object movement     \t -x   expand abbreviations g/x/z\n\
+  -O   watch object locating\n"
 
 /*
 char stripped_story_name[FILENAME_MAX+1];
@@ -245,7 +245,7 @@ void os_process_arguments (int argc, char *argv[])
 
     /* Parse the options */
     do {
-       c = zgetopt(argc, argv, "aAb:c:def:Fh:il:oOpPqrR:s:S:tu:w:xZ:");
+       c = zgetopt(argc, argv, "aAb:c:def:Fh:il:oOpPqrR:s:S:tu:vw:xZ:");
        switch(c) {
          case 'a': f_setup.attribute_assignment = 1; break;
          case 'A': f_setup.attribute_testing = 1; break;
@@ -299,7 +299,7 @@ void os_process_arguments (int argc, char *argv[])
     } while (c != EOF);
 
     if (zoptind != argc - 1) {
-       printf("FROTZ V%s\t", GIT_TAG);
+       printf("FROTZ V%s\t", VERSION);
 
 #ifndef NO_SOUND
        printf("Audio output enabled.");
@@ -1118,9 +1118,10 @@ static void print_version(void)
     printf("\nGit commit:\t%s\n", GIT_HASH);
     printf("Git tag:\t%s\n", GIT_TAG);
     printf("Git branch:\t%s\n", GIT_BRANCH);
-    printf("  Frotz was originally written by Stefan Jokisch\n");
+    printf("  Frotz was originally written by Stefan Jokisch.\n");
+    printf("  It complies with standard 1.0 of Graham Nelson's specification.\n");
     printf("  It was ported to Unix by Galen Hazelwood.\n");
     printf("  The core and Unix port are currently maintained by David Griffith.\n");
-    printf("  See https://github.com/DavidGriffith/frotz for Frotz's homepage\n\n");
+    printf("  See https://github.com/DavidGriffith/frotz for Frotz's homepage.\n\n");
     return;
 }