]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Treat --keyword= like --keyword.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Apr 2006 11:18:36 +0000 (11:18 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:05 +0000 (12:13 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/xgettext.c

index cd03d46cda9a2a163e4c8effa5ea59d013d53d5c..3567cd3804efcc3f1066719a35f32dca5cde6289 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-01  Bruno Haible  <bruno@clisp.org>
+
+       * xgettext.c (main): Treat --keyword= like --keyword.
+
 2006-03-28  Bruno Haible  <bruno@clisp.org>
 
        * filters.h: New file.
index 1fbda0b3525e23b372452a87d8aec48e09df0d0a..2c0be2b158cfb687f641ce04375fc70177ea75c7 100644 (file)
@@ -386,28 +386,28 @@ main (int argc, char *argv[])
        join_existing = true;
        break;
       case 'k':
-       if (optarg == NULL || *optarg != '\0')
-         {
-           x_c_keyword (optarg);
-           x_objc_keyword (optarg);
-           x_sh_keyword (optarg);
-           x_python_keyword (optarg);
-           x_lisp_keyword (optarg);
-           x_elisp_keyword (optarg);
-           x_librep_keyword (optarg);
-           x_scheme_keyword (optarg);
-           x_java_keyword (optarg);
-           x_csharp_keyword (optarg);
-           x_awk_keyword (optarg);
-           x_tcl_keyword (optarg);
-           x_perl_keyword (optarg);
-           x_php_keyword (optarg);
-           x_glade_keyword (optarg);
-           if (optarg == NULL)
-             no_default_keywords = true;
-           else
-             some_additional_keywords = true;
-         }
+       if (optarg != NULL && *optarg == '\0')
+         /* Make "--keyword=" work like "--keyword" and "-k".  */
+         optarg = NULL;
+       x_c_keyword (optarg);
+       x_objc_keyword (optarg);
+       x_sh_keyword (optarg);
+       x_python_keyword (optarg);
+       x_lisp_keyword (optarg);
+       x_elisp_keyword (optarg);
+       x_librep_keyword (optarg);
+       x_scheme_keyword (optarg);
+       x_java_keyword (optarg);
+       x_csharp_keyword (optarg);
+       x_awk_keyword (optarg);
+       x_tcl_keyword (optarg);
+       x_perl_keyword (optarg);
+       x_php_keyword (optarg);
+       x_glade_keyword (optarg);
+       if (optarg == NULL)
+         no_default_keywords = true;
+       else
+         some_additional_keywords = true;
        break;
       case 'l':
        /* Accepted for backward compatibility with 0.10.35.  */