OSDN Git Service

* src/lharc.c (print_tiny_usage, parse_suboption): added a long
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 24 Feb 2007 15:04:03 +0000 (15:04 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 24 Feb 2007 15:04:03 +0000 (15:04 +0000)
option "--traditional". it is just the same
"--convert-filename-case" for the present.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@866 6a8cc165-1e22-0410-a132-eb4e3f353aba

ChangeLog
src/lharc.c

index e17efb3..399279f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-02-24  Koji Arai  <arai@users.sourceforge.jp>
 
+       * src/lharc.c (print_tiny_usage, parse_suboption): added a long
+       option "--traditional". it is just the same
+       "--convert-filename-case" for the present.
+
        * src/header.c (get_header): the variable "noconvertcase" changed
        to "convertcase".
        it means that this LHa does not convert filename case automatically.
index 032b0a5..b809dbb 100644 (file)
@@ -139,6 +139,7 @@ usage: lha [-]<commands>[<options>] [-<options> ...] archive_file [file...]\n\
                 --archive-kanji-code={euc,sjis,utf8,cap}\n\
                 --extract-broken-archive\n\
                 --convert-filename-case\n\
+                --traditional\n\
                 --help\n\
                 --version\n");
 #endif
@@ -217,6 +218,7 @@ parse_suboption(int argc, char **argv)
         VERSION_OPTION,
         SYSTEM_KANJI_CODE_OPTION,
         ARCHIVE_KANJI_CODE_OPTION,
+        TRADITIONAL_BEHAVIOR,
     };
 
     struct option long_options[] = {
@@ -228,6 +230,7 @@ parse_suboption(int argc, char **argv)
         {"archive-kanji-code", required_argument, 0, ARCHIVE_KANJI_CODE_OPTION},
         {"extract-broken-archive", no_argument, &extract_broken_archive, 1},
         {"convert-filename-case", no_argument, &convertcase, TRUE},
+        {"traditional", no_argument, 0, TRADITIONAL_BEHAVIOR},
         {0, 0, 0, 0}
     };
     int i;
@@ -441,6 +444,10 @@ parse_suboption(int argc, char **argv)
             }
             break;
 
+        case TRADITIONAL_BEHAVIOR:
+            convertcase = TRUE;
+            break;
+
         default:
             error("unknown option `-%c'.", c);
             return -1;