Skip to content

Commit

Permalink
Fixing is requesting version error
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Jan 7, 2017
1 parent cb9bc44 commit 1fe2f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Program/CommandParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 1fe2f32

Please sign in to comment.