diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/parser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/parser.cpp b/src/tools/parser.cpp index aa9e3e4..7d35f12 100644 --- a/src/tools/parser.cpp +++ b/src/tools/parser.cpp | |||
@@ -227,6 +227,11 @@ void redPrint( Bu::Parser &p ) | |||
227 | 227 | ||
228 | int main( int argc, char *argv[] ) | 228 | int main( int argc, char *argv[] ) |
229 | { | 229 | { |
230 | if( argc < 2 ) | ||
231 | { | ||
232 | println("Provide an input filename as the first parameter."); | ||
233 | return 0; | ||
234 | } | ||
230 | File fIn( argv[1], File::Read ); | 235 | File fIn( argv[1], File::Read ); |
231 | 236 | ||
232 | Parser p; | 237 | Parser p; |