forked from I2P_Developers/i2p.i2p
Add lightweight getopt command line parsing lib
(ticket #1173) This is Java getopt 1.0.14 (released 2012/02/08) Source was retrieved from https://github.com/arenn/java-getopt Previous version 1.0.13 (released 2006/08/29) is available at http://www.urbanophile.com/arenn/hacking/getopt/ Copyright (c) 1998 by Aaron M. Renn (arenn@urbanophile.com), LGPL v2. Include the small translation files, add to build.xml and to .tx/config Fixes: Simplified Chinese MessagesBundle_chs.properties renamed to MessagesBundle_zh.properties Traditional Chinese MessagesBundle_cht.properties renamed to MessagesBundle_zh_TW.properties Norwegian Bokmaal MessagesBundle_no.properties renamed to MessagesBundle_nb.properties
This commit is contained in:
1337
core/java/src/gnu/getopt/Getopt.java
Normal file
1337
core/java/src/gnu/getopt/Getopt.java
Normal file
File diff suppressed because it is too large
Load Diff
195
core/java/src/gnu/getopt/LongOpt.java
Normal file
195
core/java/src/gnu/getopt/LongOpt.java
Normal file
@ -0,0 +1,195 @@
|
||||
/**************************************************************************
|
||||
/* LongOpt.java -- Long option object for Getopt
|
||||
/*
|
||||
/* Copyright (c) 1998 by Aaron M. Renn (arenn@urbanophile.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
package gnu.getopt;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
import java.text.MessageFormat;
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/**
|
||||
* This object represents the definition of a long option in the Java port
|
||||
* of GNU getopt. An array of LongOpt objects is passed to the Getopt
|
||||
* object to define the list of valid long options for a given parsing
|
||||
* session. Refer to the getopt documentation for details on the
|
||||
* format of long options.
|
||||
*
|
||||
* @version 1.0.5
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
*
|
||||
* @see Getopt
|
||||
*/
|
||||
public class LongOpt extends Object
|
||||
{
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/*
|
||||
* Class Variables
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constant value used for the "has_arg" constructor argument. This
|
||||
* value indicates that the option takes no argument.
|
||||
*/
|
||||
public static final int NO_ARGUMENT = 0;
|
||||
|
||||
/**
|
||||
* Constant value used for the "has_arg" constructor argument. This
|
||||
* value indicates that the option takes an argument that is required.
|
||||
*/
|
||||
public static final int REQUIRED_ARGUMENT = 1;
|
||||
|
||||
/**
|
||||
* Constant value used for the "has_arg" constructor argument. This
|
||||
* value indicates that the option takes an argument that is optional.
|
||||
*/
|
||||
public static final int OPTIONAL_ARGUMENT = 2;
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/*
|
||||
* Instance Variables
|
||||
*/
|
||||
|
||||
/**
|
||||
* The name of the long option
|
||||
*/
|
||||
protected String name;
|
||||
|
||||
/**
|
||||
* Indicates whether the option has no argument, a required argument, or
|
||||
* an optional argument.
|
||||
*/
|
||||
protected int has_arg;
|
||||
|
||||
/**
|
||||
* If this variable is not null, then the value stored in "val" is stored
|
||||
* here when this long option is encountered. If this is null, the value
|
||||
* stored in "val" is treated as the name of an equivalent short option.
|
||||
*/
|
||||
protected StringBuffer flag;
|
||||
|
||||
/**
|
||||
* The value to store in "flag" if flag is not null, otherwise the
|
||||
* equivalent short option character for this long option.
|
||||
*/
|
||||
protected int val;
|
||||
|
||||
/**
|
||||
* Localized strings for error messages
|
||||
*/
|
||||
private ResourceBundle _messages = ResourceBundle.getBundle(
|
||||
"gnu/getopt/MessagesBundle", Locale.getDefault());
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new LongOpt object with the given parameter values. If the
|
||||
* value passed as has_arg is not valid, then an exception is thrown.
|
||||
*
|
||||
* @param name The long option String.
|
||||
* @param has_arg Indicates whether the option has no argument (NO_ARGUMENT), a required argument (REQUIRED_ARGUMENT) or an optional argument (OPTIONAL_ARGUMENT).
|
||||
* @param flag If non-null, this is a location to store the value of "val" when this option is encountered, otherwise "val" is treated as the equivalent short option character.
|
||||
* @param val The value to return for this long option, or the equivalent single letter option to emulate if flag is null.
|
||||
*
|
||||
* @exception IllegalArgumentException If the has_arg param is not one of NO_ARGUMENT, REQUIRED_ARGUMENT or OPTIONAL_ARGUMENT.
|
||||
*/
|
||||
public
|
||||
LongOpt(String name, int has_arg,
|
||||
StringBuffer flag, int val) throws IllegalArgumentException
|
||||
{
|
||||
// Validate has_arg
|
||||
if ((has_arg != NO_ARGUMENT) && (has_arg != REQUIRED_ARGUMENT)
|
||||
&& (has_arg != OPTIONAL_ARGUMENT))
|
||||
{
|
||||
Object[] msgArgs = { new Integer(has_arg).toString() };
|
||||
throw new IllegalArgumentException(MessageFormat.format(
|
||||
_messages.getString("getopt.invalidValue"), msgArgs));
|
||||
}
|
||||
|
||||
// Store off values
|
||||
this.name = name;
|
||||
this.has_arg = has_arg;
|
||||
this.flag = flag;
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/**
|
||||
* Returns the name of this LongOpt as a String
|
||||
*
|
||||
* @return Then name of the long option
|
||||
*/
|
||||
public String
|
||||
getName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/**
|
||||
* Returns the value set for the 'has_arg' field for this long option
|
||||
*
|
||||
* @return The value of 'has_arg'
|
||||
*/
|
||||
public int
|
||||
getHasArg()
|
||||
{
|
||||
return(has_arg);
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
/**
|
||||
* Returns the value of the 'flag' field for this long option
|
||||
*
|
||||
* @return The value of 'flag'
|
||||
*/
|
||||
public StringBuffer
|
||||
getFlag()
|
||||
{
|
||||
return(flag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of the 'val' field for this long option
|
||||
*
|
||||
* @return The value of 'val'
|
||||
*/
|
||||
public int
|
||||
getVal()
|
||||
{
|
||||
return(val);
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
} // Class LongOpt
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- English language error messages
|
||||
/*
|
||||
/* Copyright (c) 1998 by William King (wrking@eng.sun.com) and
|
||||
/* Aaron M. Renn (arenn@urbanophile.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: option ''{1}'' is ambiguous
|
||||
getopt.arguments1={0}: option ''--{1}'' doesn't allow an argument
|
||||
getopt.arguments2={0}: option ''{1}{2}'' doesn't allow an argument
|
||||
getopt.requires={0}: option ''{1}'' requires an argument
|
||||
getopt.unrecognized={0}: unrecognized option ''--{1}''
|
||||
getopt.unrecognized2={0}: unrecognized option ''{1}{2}''
|
||||
getopt.illegal={0}: illegal option -- {1}
|
||||
getopt.invalid={0}: invalid option -- {1}
|
||||
getopt.requires2={0}: option requires an argument -- {1}
|
||||
getopt.invalidValue=Invalid value {0} for parameter 'has_arg'
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle_cs.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle_cs.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_cs.properties -- Czech language error messages
|
||||
/*
|
||||
/* Czech Messages Copyright (c) 1998 by Roman Szturc (Roman.Szturc@vsb.cz)
|
||||
/* These messages are encoded in ISO-8859-2
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: volba ''{1}'' je nejednozna<6E>n<EFBFBD>
|
||||
getopt.arguments1={0}: volba ''--{1}'' nep<65>ipou<6F>t<EFBFBD> argument
|
||||
getopt.arguments2={0}: volba ''{1}{2}'' nep<65>ipou<6F>t<EFBFBD> argument
|
||||
getopt.requires={0}: volba ''{1}'' vy<76>aduje argument
|
||||
getopt.unrecognized={0}: nep<65><70>pustn<74> volba ''--{1}''
|
||||
getopt.unrecognized2={0}: nep<65><70>pustn<74> volba ''{1}{2}''
|
||||
getopt.illegal={0}: nep<65><70>pustn<74> volba -- {1}
|
||||
getopt.invalid={0}: neplatn<74> volba -- {1}
|
||||
getopt.requires2={0}: volba vy<76>aduje argument -- {1}
|
||||
getopt.invalidValue=Neplatn<EFBFBD> hodnota {0} parameteru 'has_arg'
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle_de.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle_de.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- German language error messages
|
||||
/*
|
||||
/* German Messages Copyright (c) 1999 by Bernhard Bablok (bablokb@gmx.net)
|
||||
/* These messages are encoded in ISO-8859-1
|
||||
//*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: Option ''{1}'' ist zweideutig
|
||||
getopt.arguments1={0}: Option ''--{1}'' erlaubt kein Argument
|
||||
getopt.arguments2={0}: Option ''{1}{2}'' erlaubt kein Argument
|
||||
getopt.requires={0}: Option ''{1}'' ben<65>tigt ein Argument
|
||||
getopt.unrecognized={0}: Unbekannte Option ''--{1}''
|
||||
getopt.unrecognized2={0}: Unbekannte Option ''{1}{2}''
|
||||
getopt.illegal={0}: Verbotene Option -- {1}
|
||||
getopt.invalid={0}: Ung<6E>ltige Option -- {1}
|
||||
getopt.requires2={0}: Option ben<65>tigt ein Argument -- {1}
|
||||
getopt.invalidValue=Ung<EFBFBD>ltiger Wert {0} f<>r Parameter 'has_arg'
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle_es.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle_es.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_es.properties -- Spanish language error messages
|
||||
/*
|
||||
/* Spanish Messages Copyright (c) 2004 by Daniel P<>rez (dondani@gmail.com)
|
||||
/* These messages are encoded in ISO-8859-1
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: la opci<63>n ''{1}'' es ambigua
|
||||
getopt.arguments1={0}: la opci<63>n ''--{1}'' no permite un argumento
|
||||
getopt.arguments2={0}: la opci<63>n ''{1}{2}'' no permite un argumento
|
||||
getopt.requires={0}: la opci<63>n ''{1}'' requiere un argumento
|
||||
getopt.unrecognized={0}: opci<63>n no reconocida ''--{1}''
|
||||
getopt.unrecognized2={0}: opci<63>n no reconocida ''{1}{2}''
|
||||
getopt.illegal={0}: opci<63>n ilegal -- {1}
|
||||
getopt.invalid={0}: opci<63>n no v<>lida -- {1}
|
||||
getopt.requires2={0}: la opci<63>n requiere un argumento -- {1}
|
||||
getopt.invalidValue=Valor no v<>lido {0} para el par<61>metro 'has_arg'
|
||||
|
35
core/java/src/gnu/getopt/MessagesBundle_fr.properties
Normal file
35
core/java/src/gnu/getopt/MessagesBundle_fr.properties
Normal file
@ -0,0 +1,35 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_fr.properties -- French language error messages
|
||||
/*
|
||||
/* Copyright (c) 1999 Free Software Foundation, Inc.
|
||||
/* Michel Robitaille <robitail@IRO.UMontreal.CA>, 1996,
|
||||
/* Edouard G. Parmelan <edouard.parmelan@quadratec.fr>, 1999.
|
||||
/* These messages are encoded in ISO-8859-1
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: l'option ''{1}'' est ambigu<67>
|
||||
getopt.arguments1={0}: l'option ''--{1}'' ne permet pas de param<61>tre
|
||||
getopt.arguments2={0}: l'option ''{1}{2}'' ne permet pas de param<61>tre
|
||||
getopt.requires={0}: l'option ''{1}'' requiert un param<61>tre
|
||||
getopt.unrecognized={0}: option non reconnue ''--{1}''
|
||||
getopt.unrecognized2={0}: option non reconnue ''{1}{2}''
|
||||
getopt.illegal={0}: option ill<6C>gale -- {1}
|
||||
getopt.invalid={0}: option invalide -- {1}
|
||||
getopt.requires2={0}: cette option requiert un param<61>tre -- {1}
|
||||
getopt.invalidValue=Valeur invalide {0} pour le param<61>tre 'has_arg'
|
||||
|
32
core/java/src/gnu/getopt/MessagesBundle_hu.properties
Normal file
32
core/java/src/gnu/getopt/MessagesBundle_hu.properties
Normal file
@ -0,0 +1,32 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- Hungarian language error messages
|
||||
/*
|
||||
/* Copyright (c) 2001 by Gyula Csom (csom@informix.hu)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: opci<63> ''{1}'' f<>lre<72>rthet<65>
|
||||
getopt.arguments1={0}: opci<63> ''--{1}'' nem enged meg argumentumot
|
||||
getopt.arguments2={0}: opci<63> ''{1}{2}'' nem enged meg argumentumot
|
||||
getopt.requires={0}: opci<63> ''{1}'' argumentumot ig<69>nyel
|
||||
getopt.unrecognized={0}: ismeretlen opci<63> ''--{1}''
|
||||
getopt.unrecognized2={0}: ismeretlen opci<63> ''{1}{2}''
|
||||
getopt.illegal={0}: illeg<65>lis opci<63> -- {1}
|
||||
getopt.invalid={0}: <20>rv<72>nytelen opci<63> -- {1}
|
||||
getopt.requires2={0}: az opci<63> argumentumot ig<69>nyel -- {1}
|
||||
getopt.invalidValue=<EFBFBD>rv<EFBFBD>nytelen <20>rt<72>k {0} a k<>vetkez<65> param<61>terhez 'has_arg'
|
||||
|
32
core/java/src/gnu/getopt/MessagesBundle_it.properties
Normal file
32
core/java/src/gnu/getopt/MessagesBundle_it.properties
Normal file
@ -0,0 +1,32 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- Italian language error messages
|
||||
/*
|
||||
/* Copyright (c) 2005 by Sandro Tosi (matrixhasu@gmail.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: l'opzione ''{1}'' <20> ambigua
|
||||
getopt.arguments1={0}: l'opzione ''--{1}'' non ammette un argomento
|
||||
getopt.arguments2={0}: l'opzione ''{1}{2}'' non ammette un argomento
|
||||
getopt.requires={0}: l'opzione ''{1}'' richiede un argomento
|
||||
getopt.unrecognized={0}: opzione non riconosciuta ''--{1}''
|
||||
getopt.unrecognized2={0}: opzione non riconosciuta ''{1}{2}''
|
||||
getopt.illegal={0}: opzione illegale -- {1}
|
||||
getopt.invalid={0}: opzione invalida -- {1}
|
||||
getopt.requires2={0}: l'opzione richiede un argomento -- {1}
|
||||
getopt.invalidValue=Valore non valido {0} per il parametro 'has_arg'
|
||||
|
32
core/java/src/gnu/getopt/MessagesBundle_ja.properties
Normal file
32
core/java/src/gnu/getopt/MessagesBundle_ja.properties
Normal file
@ -0,0 +1,32 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- Japanese language error messages
|
||||
/*
|
||||
/* Copyright (c) 2001 by Yasuoka Masahiko (yasuoka@yasuoka.net)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: ''{1}'' \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u66d6\u6627\u3067\u3059\u3002
|
||||
getopt.arguments1={0}: ''--{1}'' \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3082\u3061\u307e\u305b\u3093\u3002
|
||||
getopt.arguments2={0}: ''{1}{2}'' \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3082\u3061\u307e\u305b\u3093\u3002
|
||||
getopt.requires={0}: ''{1}'' \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5fc5\u8981\u3067\u3059\u3002
|
||||
getopt.unrecognized={0}: ''--{1}'' \u306f\u7121\u52b9\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002
|
||||
getopt.unrecognized2={0}: ''{1}{2}'' \u306f\u7121\u52b9\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002
|
||||
getopt.illegal={0}: -- {1} \u306f\u4e0d\u6b63\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002
|
||||
getopt.invalid={0}: -- {1} \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
getopt.requires2={0}: -- {1} \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5fc5\u8981\u3067\u3059\u3002
|
||||
getopt.invalidValue={0} \u306f\u3001'has_arg' \u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u4e0d\u6b63\u306a\u5024\u3067\u3059\u3002
|
||||
|
32
core/java/src/gnu/getopt/MessagesBundle_nb.properties
Normal file
32
core/java/src/gnu/getopt/MessagesBundle_nb.properties
Normal file
@ -0,0 +1,32 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties -- Norwegian language error messages
|
||||
/*
|
||||
/* Copyright (c) 1999 by Bj<42>rn-Ove Heimsund (s811@ii.uib.no)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: flagget ''{1}'' er flertydig
|
||||
getopt.arguments1={0}: flagget ''--{1}'' tillater ikke et argument
|
||||
getopt.arguments2={0}: flagget ''{1}{2}'' tillater ikke et argument
|
||||
getopt.requires={0}: flagget ''{1}'' krever et argument
|
||||
getopt.unrecognized={0}: ukjent flagg ''--{1}''
|
||||
getopt.unrecognized2={0}: ukjent flagg ''{1}{2}''
|
||||
getopt.illegal={0}: ugyldig flagg -- {1}
|
||||
getopt.invalid={0}: ugyldig flagg -- {1}
|
||||
getopt.requires2={0}: flagget krever et argument -- {1}
|
||||
getopt.invalidValue=Ugyldig verdi {0} for parameter 'has_arg'
|
||||
|
32
core/java/src/gnu/getopt/MessagesBundle_nl.properties
Normal file
32
core/java/src/gnu/getopt/MessagesBundle_nl.properties
Normal file
@ -0,0 +1,32 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_nl.properties -- Dutch language error messages
|
||||
/*
|
||||
/* Copyright (c) 1999 by Ernst de Haan (ernst@jollem.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: optie ''{1}'' is ambigue
|
||||
getopt.arguments1={0}: optie ''--{1}'' staat geen argumenten toe
|
||||
getopt.arguments2={0}: optie ''{1}{2}'' staat geen argumenten toe
|
||||
getopt.requires={0}: optie ''{1}'' heeft een argument nodig
|
||||
getopt.unrecognized={0}: onbekende optie ''--{1}''
|
||||
getopt.unrecognized2={0}: onbekende optie ''{1}{2}''
|
||||
getopt.illegal={0}: niet-toegestane optie -- {1}
|
||||
getopt.invalid={0}: onjuiste optie -- {1}
|
||||
getopt.requires2={0}: optie heeft een argument nodig -- {1}
|
||||
getopt.invalidValue=Ongeldige waarde {0} voor parameter 'has_arg'
|
||||
|
36
core/java/src/gnu/getopt/MessagesBundle_pl.properties
Normal file
36
core/java/src/gnu/getopt/MessagesBundle_pl.properties
Normal file
@ -0,0 +1,36 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_pl.properties -- Polish language error messages
|
||||
/*
|
||||
/* Polish Messages Copyright (c) 2006 by Krzysztof Szyma?ski (sirch.s@gmail.com)
|
||||
/* These messages are encoded in ISO-8859-2
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
|
||||
getopt.ambigious={0}: opcja ''{1}''jest wieloznaczna
|
||||
getopt.arguments1={0}: opcja ''--{1}'' nie akceptuje argumentu
|
||||
getopt.arguments2={0}: opcja ''{1}{2}'' nie akceptuje argumentu
|
||||
getopt.requires={0}: opcja ''{1}'' wymaga argumentu
|
||||
getopt.unrecognized={0}: nierozpoznana opcja ''--{1}''
|
||||
getopt.unrecognized2={0}: nierozpoznana opcja ''{1}{2}''
|
||||
getopt.illegal={0}: nie dopuszczalna opcja --{1}
|
||||
getopt.invalid={0}: b??dna opcja --{1}
|
||||
getopt.requires2={0}: opcja --{1} oczekuje argumentu
|
||||
getopt.invalidValue=Nie poprawna warto?? {0} argument 'has_arg'
|
||||
|
||||
|
||||
|
34
core/java/src/gnu/getopt/MessagesBundle_ro.properties
Normal file
34
core/java/src/gnu/getopt/MessagesBundle_ro.properties
Normal file
@ -0,0 +1,34 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle_fr.properties -- Romanian language error messages
|
||||
/*
|
||||
/* Copyright (c) 1999 Free Software Foundation, Inc.
|
||||
/* Marian-Nicolae Ion <marian_ion@noos.fr>, 2004,
|
||||
/* These messages are encoded in ISO-8859-2
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your optiunea) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: opţiunea ''{1}'' este ambiguă
|
||||
getopt.arguments1={0}: opţiunea ''--{1}'' nu acceptă parametru
|
||||
getopt.arguments2={0}: opţiunea ''{1}{2}'' nu acceptă parametru
|
||||
getopt.requires={0}: opţiunea ''{1}'' cere un parametru
|
||||
getopt.unrecognized={0}: opţiune necunoscută ''--{1}''
|
||||
getopt.unrecognized2={0}: opţiune necunoscută ''{1}{2}''
|
||||
getopt.illegal={0}: opţiune ilegală -- {1}
|
||||
getopt.invalid={0}: opţiune invalidă -- {1}
|
||||
getopt.requires2={0}: această opţiune cere un parametru -- {1}
|
||||
getopt.invalidValue=Valoare invalidă {0} pentru parametrul 'has_arg'
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle_zh.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle_zh.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties <20>CSimple Chinese language error messages
|
||||
/*
|
||||
/* Copyright (c) 2012 by David Zhang (david290@qq.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: ѡ<><D1A1> ''{1}'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
getopt.arguments1={0}:ѡ<><D1A1>''--{1}'' <20><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>
|
||||
getopt.arguments2={0}:ѡ<><D1A1>''{1}{2}''<27><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>
|
||||
getopt.requires={0}: ѡ<><D1A1> ''{1}'' Ҫ<><D2AA><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD>
|
||||
getopt.unrecognized={0}: <20><EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1> ''--{1}''
|
||||
getopt.unrecognized2={0}:<3A><EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>''{1}{2}''
|
||||
getopt.illegal={0}: <20>Ƿ<EFBFBD>ѡ<EFBFBD><D1A1> -- {1}
|
||||
getopt.invalid={0}: <20><>Чѡ<D0A7><D1A1> -- {1}
|
||||
getopt.requires2={0}:ѡ<><D1A1><EFBFBD><EFBFBD>Ҫ<EFBFBD>в<EFBFBD><D0B2><EFBFBD> -- {1}
|
||||
getopt.invalidValue=ѡ<EFBFBD><EFBFBD> 'has_arg'<27><>ֵ {0} <20>Ƿ<EFBFBD>
|
||||
|
||||
|
33
core/java/src/gnu/getopt/MessagesBundle_zh_TW.properties
Normal file
33
core/java/src/gnu/getopt/MessagesBundle_zh_TW.properties
Normal file
@ -0,0 +1,33 @@
|
||||
/**************************************************************************
|
||||
/* MessagesBundle.properties - Triditional Chinese language error messages
|
||||
/*
|
||||
/* Copyright (c) 2012 by David Zhang (david290@qq.com)
|
||||
/*
|
||||
/* This program is free software; you can redistribute it and/or modify
|
||||
/* it under the terms of the GNU Library General Public License as published
|
||||
/* by the Free Software Foundation; either version 2 of the License or
|
||||
/* (at your option) any later version.
|
||||
/*
|
||||
/* This program is distributed in the hope that it will be useful, but
|
||||
/* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
/* GNU Library General Public License for more details.
|
||||
/*
|
||||
/* You should have received a copy of the GNU Library General Public License
|
||||
/* along with this program; see the file COPYING.LIB. If not, write to
|
||||
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
|
||||
/* Boston, MA 02111-1307 USA
|
||||
/**************************************************************************/
|
||||
|
||||
getopt.ambigious={0}: 選項 ''{1}'' 有歧義
|
||||
getopt.arguments1={0}:選項''--{1}'' 不能帶參數
|
||||
getopt.arguments2={0}:選項''{1}{2}''不能帶參數
|
||||
getopt.requires={0}: 選項 ''{1}'' 要求帶有參數
|
||||
getopt.unrecognized={0}: 無法識別的選項 ''--{1}''
|
||||
getopt.unrecognized2={0}:無法識別的選項''{1}{2}''
|
||||
getopt.illegal={0}: 非法選項 -- {1}
|
||||
getopt.invalid={0}: 無效選項 -- {1}
|
||||
getopt.requires2={0}:選項需要有參數 -- {1}
|
||||
getopt.invalidValue=選項 'has_arg'的值 {0} 非法
|
||||
|
||||
|
25
core/java/src/gnu/getopt/package.html
Normal file
25
core/java/src/gnu/getopt/package.html
Normal file
@ -0,0 +1,25 @@
|
||||
<html><body>
|
||||
<p>
|
||||
This is Java getopt 1.0.14 (released 2012/02/08)
|
||||
</p><p>
|
||||
Added in I2P 0.9.12.
|
||||
Source was retrieved from <a href="https://github.com/arenn/java-getopt">here</a>.
|
||||
Previous version 1.0.13 (released 2006/08/29)
|
||||
is available <a href="http://www.urbanophile.com/arenn/hacking/getopt/">here</a>.
|
||||
</p><p>
|
||||
Copyright (c) 1998 by Aaron M. Renn (arenn@urbanophile.com),
|
||||
LGPL v2.
|
||||
</p><p>
|
||||
Changes:
|
||||
<ul><li>
|
||||
Simplified Chinese
|
||||
MessagesBundle_chs.properties renamed to MessagesBundle_zh.properties
|
||||
</li><li>
|
||||
Traditional Chinese
|
||||
MessagesBundle_cht.properties renamed to MessagesBundle_zh_TW.properties
|
||||
</li><li>
|
||||
Norwegian Bokmaal
|
||||
MessagesBundle_no.properties renamed to MessagesBundle_nb.properties
|
||||
</li></ul>
|
||||
</p>
|
||||
</body></html>
|
Reference in New Issue
Block a user