[Liblas-commits] hg-main-tree: Added 'input' as a positional option
for pcpipeline
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Aug 16 17:01:07 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/1f3578a018db
changeset: 1116:1f3578a018db
user: Pete Gadomski <pete.gadomski at gmail.com>
date: Tue Aug 16 14:01:05 2011 -0700
description:
Added 'input' as a positional option for pcpipeline
diffstat:
apps/pcpipeline.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r ccdbae669d00 -r 1f3578a018db apps/pcpipeline.cpp
--- a/apps/pcpipeline.cpp Tue Aug 16 13:04:42 2011 -0700
+++ b/apps/pcpipeline.cpp Tue Aug 16 14:01:05 2011 -0700
@@ -72,7 +72,7 @@
{
if (!hasOption("input"))
{
- throw app_usage_error("--input/-i required");
+ throw app_usage_error("input file name required");
}
return;
@@ -84,10 +84,11 @@
po::options_description* file_options = new po::options_description("file options");
file_options->add_options()
- ("input,i", po::value<std::string>(&m_inputFile), "input file name (required)")
+ ("input,i", po::value<std::string>(&m_inputFile), "input file name")
;
addOptionSet(file_options);
+ addPositionalOption("input", 1);
}
More information about the Liblas-commits
mailing list