Skip to content

Commit

Permalink
use parseSimple() o instead of parse() as we don't need validation of
Browse files Browse the repository at this point in the history
mandatory parameters
  • Loading branch information
alexbruy committed Oct 23, 2023
1 parent 8ec5e06 commit 6a310fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tile/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ static void writeOutputFile(const std::string& filename, pdal::PointViewPtr view
void addArgs(pdal::ProgramArgs& programArgs, BaseInfo::Options& options, pdal::Arg * &tempArg, pdal::Arg * &threadsArg)
{
programArgs.add("output,o", "Output directory/filename", options.outputDir);
programArgs.add("files,i", "Input files/directory", options.inputFiles);
programArgs.add("files,i", "Input files/directory", options.inputFiles).setPositional();
programArgs.add("input-file-list", "Read input files from a text file", options.inputFileList);
programArgs.add("length,l", "Tile length", options.tileLength, 1000.);
tempArg = &(programArgs.add("temp_dir", "Temp directory", options.tempDir));
Expand Down Expand Up @@ -463,7 +463,7 @@ bool handleOptions(pdal::StringList& arglist, BaseInfo::Options& options)
addArgs(programArgs, options, tempArg, threadsArg);
try
{
programArgs.parse(arglist);
programArgs.parseSimple(arglist);
}
catch (const pdal::arg_error& err)
{
Expand Down

0 comments on commit 6a310fe

Please sign in to comment.