diff options
author | Bruno Haible <bruno@clisp.org> | 2001-09-23 14:42:25 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-09-23 14:42:25 +0000 |
commit | cc19220e14166d6e291d59c842a7286a36aa1f48 (patch) | |
tree | 9370781a49c4c5fb4c5532cfadc4f3fa10bffb25 /src/msgconv.c | |
parent | 07a3a5812846db730099575888124bd9efee9486 (diff) | |
download | external_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.c | 5 |
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"); |