diff options
author | bubnikv <bubnikv@gmail.com> | 2019-03-17 16:35:54 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-03-17 16:35:54 +0300 |
commit | 2bb4b4e691ac3372e19ee829a0bf46510b0a31d4 (patch) | |
tree | 2b0b9121abb26954be6c06d7d03a0c4f6fee4899 /src/slic3r.cpp | |
parent | f5b30237eacb90dc6dc1f4ff8001243c9c3e1018 (diff) |
Command line - improved error handling
Diffstat (limited to 'src/slic3r.cpp')
-rw-r--r-- | src/slic3r.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r.cpp b/src/slic3r.cpp index b60c5b1dd..3b301ec2a 100644 --- a/src/slic3r.cpp +++ b/src/slic3r.cpp @@ -523,6 +523,8 @@ bool CLI::setup(int argc, char **argv) // If any option is unsupported, print usage and abort immediately. t_config_option_keys opt_order; if (! m_config.read_cli(argc, argv, &m_input_files, &opt_order)) { + // Separate error message reported by the CLI parser from the help. + boost::nowide::cerr << std::endl; this->print_help(); return false; } @@ -615,7 +617,7 @@ std::string CLI::output_filepath(const Model &model, IO::ExportFormat format) co }; auto proposed_path = boost::filesystem::path(model.propose_export_file_name_and_path(ext)); // use --output when available - std::string cmdline_param = m_config.opt_string("output", false); + std::string cmdline_param = m_config.opt_string("output"); if (! cmdline_param.empty()) { // if we were supplied a directory, use it and append our automatically generated filename boost::filesystem::path cmdline_path(cmdline_param); |