From 1fe2f32b83a9a2e19ea38cc8b86da9e6c927a25f Mon Sep 17 00:00:00 2001 From: Tingan Ho Date: Sat, 7 Jan 2017 11:42:10 +0100 Subject: [PATCH] Fixing is requesting version error --- Source/Program/CommandParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Program/CommandParser.cpp b/Source/Program/CommandParser.cpp index a685ee4e..07316614 100644 --- a/Source/Program/CommandParser.cpp +++ b/Source/Program/CommandParser.cpp @@ -180,7 +180,7 @@ Session* parse_command_args(int argc, char* argv[]) { end_of_loop:; } - if (!file_exists(*session->root_dir + "l10ns.json") && current_flags != &default_flags) { + if (!file_exists(*session->root_dir + "l10ns.json") && !(session->is_requesting_help || session->is_requesting_version)) { session->add_diagnostics(create_diagnostic(D::You_are_not_inside_a_L10ns_project)); }