summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-23 09:47:29 -0600
committerMike Buland <mike@xagasoft.com>2013-04-23 09:47:29 -0600
commitc234914394b4c8cdee66d7528bad3c132f90dc4d (patch)
treee2204b30d1edd0d7f45a5f8579738e8fa274c644 /src/main.cpp
parent95da25821bcbcd6a94a7fdf64da1618f5324b779 (diff)
downloadclic-c234914394b4c8cdee66d7528bad3c132f90dc4d.tar.gz
clic-c234914394b4c8cdee66d7528bad3c132f90dc4d.tar.bz2
clic-c234914394b4c8cdee66d7528bad3c132f90dc4d.tar.xz
clic-c234914394b4c8cdee66d7528bad3c132f90dc4d.zip
Added cli params & a unit test.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0325db0..afa1d5e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3,6 +3,7 @@
3#include "lexer.h" 3#include "lexer.h"
4#include "token.h" 4#include "token.h"
5#include "parser.h" 5#include "parser.h"
6#include "options.h"
6#include <math.h> 7#include <math.h>
7#include <sys/time.h> 8#include <sys/time.h>
8 9
@@ -360,8 +361,10 @@ void fractest()
360 println("%1 / %2 = %3").arg( a ).arg( b ).arg( a / b ); 361 println("%1 / %2 = %3").arg( a ).arg( b ).arg( a / b );
361} 362}
362 363
363int main( int , char *[] ) 364int main( int argc, char *argv[] )
364{ 365{
366 Options opt( argc, argv );
367
365 println("CliC - 0.02"); 368 println("CliC - 0.02");
366 println("Try \\exit, \\scale, and \\radix commands."); 369 println("Try \\exit, \\scale, and \\radix commands.");
367 println(""); 370 println("");