Skip to content
Snippets Groups Projects
Commit 4be62114 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Error out (display usage) rather than printing blank lines

parent 8eead6b1
No related branches found
No related tags found
No related merge requests found
...@@ -78,4 +78,7 @@ for(i = 0; i < argv.length; ++i) { ...@@ -78,4 +78,7 @@ for(i = 0; i < argv.length; ++i) {
if (!fontfile && !tdf.opt.random) if (!fontfile && !tdf.opt.random)
usage(); usage();
if (!input_string)
usage();
tdf.printstr(input_string, fontfile); tdf.printstr(input_string, fontfile);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment