[Liblas-commits] hg: rework help display
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Sep 23 10:39:22 EDT 2010
changeset 37f78228542a in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=37f78228542a
summary: rework help display
diffstat:
apps/las2las2.cpp | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 220ac7e4553a -r 37f78228542a apps/las2las2.cpp
--- a/apps/las2las2.cpp Wed Sep 22 22:34:00 2010 -0500
+++ b/apps/las2las2.cpp Thu Sep 23 09:39:16 2010 -0500
@@ -190,13 +190,19 @@
return true;
}
-std::string GetInvocationHeader()
+void OutputHelp( std::ostream & oss, po::options_description const& options)
{
- ostringstream oss;
oss << "--------------------------------------------------------------------\n";
oss << " las2las (" << GetFullVersion() << ")\n";
oss << "--------------------------------------------------------------------\n";
- return oss.str();
+
+ oss << options;
+
+ oss <<"\nFor more information, see the full documentation for las2las2 at:\n";
+
+ oss << " http://liblas.org/utilities/las2las2.html\n";
+ oss << "----------------------------------------------------------\n";
+
}
int main(int argc, char* argv[])
@@ -243,11 +249,7 @@
if (vm.count("help"))
{
- std::cout << GetInvocationHeader()<<file_options<<"\n"<<transform_options<<"\n"<<filtering_options<<"\n";
- std::cout <<"\nFor more information, see the full documentation for las2las2 at:\n";
-
- std::cout << " http://liblas.org/utilities/las2las2.html\n";
- std::cout << "----------------------------------------------------------\n";
+ OutputHelp(std::cout, options);
return 1;
}
@@ -267,6 +269,7 @@
header = reader.GetHeader();
} else {
std::cerr << "Input LAS file not specified!\n";
+ OutputHelp(std::cout, options);
return 1;
}
More information about the Liblas-commits
mailing list