Browse Source

* Remove -v flag (and associated code), since it did absolutely nothing.
* Document -o and -d flags

wolfgang42 11 years ago
parent
commit
795f7f1aee
2 changed files with 1 additions and 11 deletions
  1. 1 3
      src/main.cpp
  2. 0 8
      src/tibasic.h

+ 1 - 3
src/main.cpp

@@ -64,7 +64,7 @@ int main( int argc, char* argv[] )
 	if((argc < 2) || (argv[1] == NULL))
 	{
 		// Inform the user
-        log(Error, "Usage: tibasic.exe [options] filename\nOptions:\n\t-v:\tVerbose mode");
+        log(Error, "Usage: tibasic.exe [options] filename\nOptions:\n\t-d\t\tDecompile\n\t-o filename\tOutput file");
 		return 1;
 	}
 
@@ -87,8 +87,6 @@ int main( int argc, char* argv[] )
             }
             outFile = argv[i + 1];
         }
-        else if(!strcmp(argv[i], "-v"))
-            pCompiler->verbosity(true);
         else if(!strcmp(argv[i], "-d"))
             bDecompile = true;
         else if(!inFile.length())

+ 0 - 8
src/tibasic.h

@@ -78,19 +78,11 @@ class Compiler
         Compiler() {}
         virtual ~Compiler() {}
 
-        inline void verbosity(bool is)
-        {
-            m_bVerbose = is;
-        }
-
         bool compile(std::string inFile, std::string outFile);
 
         bool decompile(std::string inFile, std::string outFile);
 
     private:
-        /// Whether to be verbose when compiling.
-        bool m_bVerbose;
-
         /// Perform a checksum over a region of data.
         size_t sumBytes(const char *data, size_t len);
         unsigned short doChecksum(size_t sum);