diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-23 09:47:29 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-23 09:47:29 -0600 |
commit | c234914394b4c8cdee66d7528bad3c132f90dc4d (patch) | |
tree | e2204b30d1edd0d7f45a5f8579738e8fa274c644 /src/main.cpp | |
parent | 95da25821bcbcd6a94a7fdf64da1618f5324b779 (diff) | |
download | clic-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.cpp | 5 |
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 | ||
363 | int main( int , char *[] ) | 364 | int 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(""); |