From c234914394b4c8cdee66d7528bad3c132f90dc4d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 23 Apr 2013 09:47:29 -0600 Subject: Added cli params & a unit test. --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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 @@ #include "lexer.h" #include "token.h" #include "parser.h" +#include "options.h" #include #include @@ -360,8 +361,10 @@ void fractest() println("%1 / %2 = %3").arg( a ).arg( b ).arg( a / b ); } -int main( int , char *[] ) +int main( int argc, char *argv[] ) { + Options opt( argc, argv ); + println("CliC - 0.02"); println("Try \\exit, \\scale, and \\radix commands."); println(""); -- cgit v1.2.3