From 1e4eb6dc7c963c3b58f9ed04cbd00d5a3ea25e22 Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Mon, 29 Apr 2019 21:53:41 -0700 Subject: [PATCH] Command line parser fix --- basisu_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/basisu_tool.cpp b/basisu_tool.cpp index bf088f4..e99cd95 100644 --- a/basisu_tool.cpp +++ b/basisu_tool.cpp @@ -295,6 +295,11 @@ public: m_comp_params.m_hybrid_sel_cb_quality_thresh = (float)atof(arg_v[arg_index + 1]); arg_count++; } + else if (pArg[0] == '-') + { + error_printf("Unrecognized command line option: %s\n", pArg); + return false; + } else { // Let's assume it's a source filename, so globbing works