]> Creatis software - clitk.git/commitdiff
Add -h option
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 3 Feb 2012 06:57:12 +0000 (07:57 +0100)
committerDavid Sarrut <david.sarrut@gmail.com>
Fri, 14 Sep 2012 13:20:00 +0000 (15:20 +0200)
vv/vv.cxx

index 9c3f666be3904a8de0350748bfd96c363917519b..ec82bb9a85d663a451541105887b51799fbeba86 100644 (file)
--- 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);