]> Shamusworld >> Repos - rln/blobdiff - rln.c
Forgot internal documentation for last commit. :-P
[rln] / rln.c
diff --git a/rln.c b/rln.c
index 23b2fea77f8df642a65f53f03cb118a47c32f0c8..37e5197921c8be3bfd2669f65ffee66c72c4b285 100644 (file)
--- a/rln.c
+++ b/rln.c
@@ -2977,6 +2977,22 @@ int doargs(int argc, char * argv[])
 
                                wflag = 1;
                                break;
+                       case 'y':
+                       case 'Y':
+                               if (i >= argc)
+                               {
+                                       printf("No directory filename following -y switch\n");
+                                       return 1;
+                               }
+
+                               if (strlen(argv[i]) > FARGSIZE * 3)
+                               {
+                                       printf("Directory file name too long (sorry!)\n");
+                                       return 1;
+                               }
+
+                               strcpy(libdir, argv[i++]);
+                               break;
                        case 'z':
                        case 'Z':                                       // Suppress banner flag
                                if (zflag)
@@ -3069,6 +3085,7 @@ void ShowHelp(void)
        printf("   -u                      allow unresolved symbols (experimental)\n");
        printf("   -v                      set verbose mode\n");
        printf("   -w                      show linker warnings\n");
+       printf("   -y <fname>              set include path (also set by RLNPATH)\n");
        printf("   -z                      suppress banner\n");
        printf("\n");
 }