From: David Sarrut Date: Fri, 30 Mar 2012 09:06:53 +0000 (+0200) Subject: Add "-h" in addition to "--help" X-Git-Tag: v1.3.0~52^2~26 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5e63914651ec58eebb2a08537c94a00e9e861d35;p=clitk.git Add "-h" in addition to "--help" --- diff --git a/vv/vv.cxx b/vv/vv.cxx index feec79c..4ee2489 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -125,7 +125,7 @@ int main( int argc, char** argv ) sequence_filenames.clear(); parse_mode=P_NORMAL; } - if (current=="--help") { + if ((current=="--help") || (current=="-h")) { std::cout << "vv " << VV_VERSION << ", the 2D, 2D+t, 3D and 3D+t (or 4D) image viewer" << std::endl << std::endl << "Synopsis: vv file(s) [OPTIONS] file(s)" << std::endl << std::endl << "Open file(s) for visualization." << std::endl << std::endl