From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Add -h option X-Git-Tag: v1.4.0~296 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=9e69bafb67552c371cf22e1f2a15792ac64deaad;p=clitk.git Add -h option --- diff --git a/vv/vv.cxx b/vv/vv.cxx index 9c3f666..ec82bb9 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -119,6 +119,9 @@ int main( int argc, char** argv ) if (argc >1) { for (int i = 1; i < argc; i++) { std::string current = argv[i]; + if (!current.compare(0,2,"-h")) { + current = "--help"; + } if (!current.compare(0,2,"--")) { //We are parsing an option if (parse_mode == P_SEQUENCE) {//First finish the current sequence window.LoadImages(sequence_filenames, vvImageReader::MERGEDWITHTIME);