mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Clean up handling of key matching and ignoring. Add --aggressive-remove option.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17062 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dacf96257f
commit
252ca62dd3
5 changed files with 88 additions and 28 deletions
|
@ -32,7 +32,7 @@
|
|||
#include "StringsEntry.h"
|
||||
|
||||
|
||||
int verbose,aggressive_import,aggressive_match;
|
||||
int verbose,aggressive_import,aggressive_match,aggressive_remove;
|
||||
|
||||
|
||||
typedef struct
|
||||
|
@ -475,7 +475,7 @@ int main(int argc, char **argv)
|
|||
c=argv[i];
|
||||
if (!strcmp (c,"--help"))
|
||||
{
|
||||
printf ("Syntax: %s [--help] [--verbose] [--aggressive-import] [--aggressive-match] [-L languages] files.[hmc...]\n",
|
||||
printf ("Syntax: %s [--help] [--verbose] [--aggressive-import] [--aggressive-match] [--aggressive-remove] [-L languages] files.[hmc...]\n",
|
||||
argv[0]);
|
||||
printf("\n");
|
||||
printf("Example: %s -L \"English Swedish German\" *.[hm]\n",
|
||||
|
@ -495,6 +495,11 @@ int main(int argc, char **argv)
|
|||
{
|
||||
aggressive_match = 1;
|
||||
}
|
||||
else if (!strcmp(c,"--aggressive-remove"))
|
||||
{
|
||||
aggressive_remove=1;
|
||||
aggressive_match=1;
|
||||
}
|
||||
else if (!strcmp (c,"-L"))
|
||||
{
|
||||
char *d,*d2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue