summaryrefslogtreecommitdiffstats
path: root/src/msgconv.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-09-23 14:42:25 +0000
committerBruno Haible <bruno@clisp.org>2001-09-23 14:42:25 +0000
commitcc19220e14166d6e291d59c842a7286a36aa1f48 (patch)
tree9370781a49c4c5fb4c5532cfadc4f3fa10bffb25 /src/msgconv.c
parent07a3a5812846db730099575888124bd9efee9486 (diff)
downloadexternal_gettext-cc19220e14166d6e291d59c842a7286a36aa1f48.zip
external_gettext-cc19220e14166d6e291d59c842a7286a36aa1f48.tar.gz
external_gettext-cc19220e14166d6e291d59c842a7286a36aa1f48.tar.bz2
Reorganize the option checking.
Diffstat (limited to 'src/msgconv.c')
-rw-r--r--src/msgconv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/msgconv.c b/src/msgconv.c
index 8da8685..4ec7516 100644
--- a/src/msgconv.c
+++ b/src/msgconv.c
@@ -202,6 +202,11 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
usage (EXIT_FAILURE);
}
+ /* Verify selected options. */
+ if (!line_comment && sort_by_filepos)
+ error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),
+ "--no-location", "--sort-by-file");
+
if (sort_by_msgid && sort_by_filepos)
error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),
"--sort-output", "--sort-by-file");