Removed Interactive Mode. Sorry, but the 1980s called and said they wanted
authorJames Hammons <jlhamm@acm.org>
Mon, 2 Jan 2012 12:09:20 +0000 (12:09 +0000)
committerJames Hammons <jlhamm@acm.org>
Mon, 2 Jan 2012 12:09:20 +0000 (12:09 +0000)
their limited resource feature back. ;-)

rmac.c

diff --git a/rmac.c b/rmac.c
index 0e7f94508a5f7a0365a02c243b424052dd8ba658..dd7add11a8f5503a8598497e784bec3951739ac3 100644 (file)
--- a/rmac.c
+++ b/rmac.c
@@ -712,6 +712,7 @@ int process(int argc, char **argv) {
    return(errcnt);
 }
 
+#if 0
 //
 // --- Interactive Mode ----------------------------------------------------------------------------
 //
@@ -780,6 +781,7 @@ void interactive(void)
                        printf("%d assembly error%s\n", errcnt, (errcnt > 1) ? "s" : "");
        }
 }
+#endif
 
 //
 // --- Determine Processor Endianess ---------------------------------------------------------------
@@ -817,10 +819,15 @@ int main(int argc, char ** argv)
        {                                           // Full command line passed
                status = process(argc - 1, argv + 1);              
        }
+       // Interactive mode 
        else
-       {                                                 // Interactive mode 
-               status = 0;
-               interactive();
+       {
+// Sorry Landon, this is the year 20xx and we haz plenty of resources now ;-)
+//             status = 0;
+//             interactive();
+               // Instead, we show a nice banner and switches :-)
+               display_version();
+               display_help();
        }
 
        return status;