]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
faxmail: Allow -d for backwards compatability
authorAidan Van Dyk <aidan@ifax.com>
Tue, 8 May 2007 20:40:30 +0000 (20:40 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Tue, 8 May 2007 20:40:30 +0000 (20:40 +0000)
It doesn't hurt to have it, and can ease users transition.

faxmail/faxmail.c++

index 96d0d83f1191c21e3ab1800933e00c5d60f51e2f..30f49aa70badb4d1ebe4af43ac120d0cd4c2f992 100644 (file)
@@ -150,7 +150,7 @@ faxMailApp::run(int argc, char** argv)
     readConfig(FAX_LIBDATA "/faxmail.conf");
     readConfig(FAX_USERCONF);
 
-    while ((c = Sys::getopt(argc, argv, "12b:cC:f:H:i:M:nNp:rRs:t:Tu:vW:")) != -1)
+    while ((c = Sys::getopt(argc, argv, "12b:cC:df:H:i:M:nNp:rRs:t:Tu:vW:")) != -1)
        switch (c) {
        case '1': case '2':             // format in 1 or 2 columns
            setNumberOfColumns(c - '0');
@@ -164,6 +164,9 @@ faxMailApp::run(int argc, char** argv)
        case 'C':                       // truncate lines
            coverTempl = optarg;
            break;
+       case 'd':                       // kept for backwards compatiblity
+           // XXX: Should we warn this isn't needed?
+           break;
        case 'f':                       // default font for text body
            setTextFont(optarg);
            break;
@@ -873,6 +876,6 @@ faxMailApp::usage()
        " [-M margins]"
        " [-t notify"
        " [-u user]"
-       " [-12cdnNrRTv]"
+       " [-12cnNrRTv]"
     );
 }