Skip to content

Commit

Permalink
Fix --help
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Apr 26, 2021
1 parent f14bb9d commit 281d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ReconstructMesh/ReconstructMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool Initialize(size_t argc, LPCTSTR* argv)
// validate input
Util::ensureValidPath(OPT::strInputFileName);
Util::ensureUnifySlash(OPT::strInputFileName);
if (OPT::vm.count("help") || OPT::strInputFileName.IsEmpty()) {
if (OPT::vm.count("help") || (OPT::strInputFileName.IsEmpty() && OPT::strMeshFileName.IsEmpty())) {
boost::program_options::options_description visible("Available options");
visible.add(generic).add(config_main).add(config_clean);
GET_LOG() << visible;
Expand Down

0 comments on commit 281d86a

Please sign in to comment.