// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
package org.forester.application;
final static private String KEY_COLUMN = "k";
final static private String VALUE_COLUMN = "v";
final static private String MAPPING_FILE_SEPARATOR_OPTION = "s";
- final static private String MAPPING_FILE_SEPARATOR_DEFAULT = ": ";
+ final static private char MAPPING_FILE_SEPARATOR_DEFAULT = '\t';
final static private String PRG_NAME = "decorator";
- final static private String PRG_VERSION = "1.12";
- final static private String PRG_DATE = "2012.12.21";
+ final static private String PRG_VERSION = "1.13";
+ final static private String PRG_DATE = "2013.01.19";
public static void main( final String args[] ) {
ForesterUtil.printProgramInformation( decorator.PRG_NAME, decorator.PRG_VERSION, decorator.PRG_DATE );
}
}
final boolean picky = cla.isOptionSet( decorator.PICKY_OPTION );
- String separator = decorator.MAPPING_FILE_SEPARATOR_DEFAULT;
+ char separator = decorator.MAPPING_FILE_SEPARATOR_DEFAULT;
if ( cla.isOptionSet( decorator.MAPPING_FILE_SEPARATOR_OPTION ) ) {
if ( advanced_table ) {
argumentsError();
}
- separator = cla.getOptionValue( decorator.MAPPING_FILE_SEPARATOR_OPTION );
+ separator = cla.getOptionValueAsChar( decorator.MAPPING_FILE_SEPARATOR_OPTION );
}
int key_column = 0;
int value_column = 1;
if ( !advanced_table ) {
BasicTable<String> mapping_table = null;
try {
- mapping_table = BasicTableParser.parse( mapping_infile, separator, false, true );
+ mapping_table = BasicTableParser.parse( mapping_infile, separator, true, false );
}
catch ( final Exception e ) {
ForesterUtil.fatalError( decorator.PRG_NAME,