From e2fbb1b72cd317d5b3e9a8a52c91c94805c64a49 Mon Sep 17 00:00:00 2001 From: David Russell Date: Fri, 12 Jun 2020 17:54:09 -0400 Subject: [PATCH] Added the -h flag to command line tools. --- tools/analyze_tracks.cxx | 1 + tools/apply_gcp.cxx | 1 + tools/bundle_adjust_tracks.cxx | 1 + tools/estimate_homography.cxx | 1 + tools/match_matrix.cxx | 1 + tools/pos2krtd.cxx | 1 + 6 files changed, 6 insertions(+) diff --git a/tools/analyze_tracks.cxx b/tools/analyze_tracks.cxx index ee4ed09cf..4ed9171c8 100644 --- a/tools/analyze_tracks.cxx +++ b/tools/analyze_tracks.cxx @@ -152,6 +152,7 @@ static int maptk_main(int argc, char const* argv[]) arg.Initialize( argc, argv ); arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--config", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "-c", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "--output-config", argT::SPACE_ARGUMENT, &opt_out_config, diff --git a/tools/apply_gcp.cxx b/tools/apply_gcp.cxx index 9550df915..ad69e8eaf 100644 --- a/tools/apply_gcp.cxx +++ b/tools/apply_gcp.cxx @@ -232,6 +232,7 @@ static int maptk_main(int argc, char const* argv[]) typedef kwiversys::CommandLineArguments argT; arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--config", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "-c", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "--output-config", argT::SPACE_ARGUMENT, &opt_out_config, diff --git a/tools/bundle_adjust_tracks.cxx b/tools/bundle_adjust_tracks.cxx index e3caa0cd0..520c1322f 100644 --- a/tools/bundle_adjust_tracks.cxx +++ b/tools/bundle_adjust_tracks.cxx @@ -411,6 +411,7 @@ static int maptk_main(int argc, char const* argv[]) typedef kwiversys::CommandLineArguments argT; arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--config", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "-c", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "--output-config", argT::SPACE_ARGUMENT, &opt_out_config, diff --git a/tools/estimate_homography.cxx b/tools/estimate_homography.cxx index 8302aa48e..168ad21ca 100644 --- a/tools/estimate_homography.cxx +++ b/tools/estimate_homography.cxx @@ -167,6 +167,7 @@ static int maptk_main(int argc, char const* argv[]) arg.Initialize( argc, argv ); arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--config", argT::SPACE_ARGUMENT, &opt_config, "Optional custom configuration file for the tool. Defaults are set such " diff --git a/tools/match_matrix.cxx b/tools/match_matrix.cxx index 7d5d7e84b..6f2a6c1cc 100644 --- a/tools/match_matrix.cxx +++ b/tools/match_matrix.cxx @@ -133,6 +133,7 @@ static int maptk_main(int argc, char const* argv[]) arg.Initialize( argc, argv ); arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--input-tracks", argT::SPACE_ARGUMENT, &opt_in_tracks, "Input track file." ); arg.AddArgument( "--output-matrix", argT::SPACE_ARGUMENT, &opt_out_matrix, "Output match matrix file" ); arg.AddArgument( "--output-frames", argT::SPACE_ARGUMENT, &opt_out_frames, "Output frame number file" ); diff --git a/tools/pos2krtd.cxx b/tools/pos2krtd.cxx index 04e01fa27..e5b282360 100644 --- a/tools/pos2krtd.cxx +++ b/tools/pos2krtd.cxx @@ -200,6 +200,7 @@ static int maptk_main(int argc, char const* argv[]) typedef kwiversys::CommandLineArguments argT; arg.AddArgument( "--help", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); + arg.AddArgument( "-h", argT::NO_ARGUMENT, &opt_help, "Display usage information" ); arg.AddArgument( "--config", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "-c", argT::SPACE_ARGUMENT, &opt_config, "Configuration file for tool" ); arg.AddArgument( "--output-config", argT::SPACE_ARGUMENT, &opt_out_config,