| | | 1 | for ( int i = 0; i < args.length; i++ ) {↵
|
1 | if ( args[i].startsWith( "--import=" ) ) {↵ | | 2 | if ( args[i].startsWith( "--" ) ) {↵
|
2 | importFile = args[i].substring( 9 )↵ | | 3 | if ( args[i].equals( "--quiet" ) ) {↵
|
3 | ;↵ | | 4 | script = false;↵
|
4 | }↵ | | 5 | }↵
|
5 | else if ( args[i].startsWith( "--properties=" ) ) {↵ | | 6 | else if ( args[i].startsWith( "--properties=" ) ) {↵
|
6 | propFile = args[i].substring( 13 );↵ | | 7 | propFile = args[i].substring( 13 );↵
|
7 | }↵ | | 8 | }↵
|
8 | else if ( args[i].equals( "--format" ) ) {↵ | | 9 | ↵
|
9 | format = true;↵ | | |
|
10 | }↵ | | |
|
11 | else if ( args[i].startsWith( "--delimiter=" ) ) {↵ | | 10 | else if ( args[i].startsWith( "--config=" ) ) {↵
|
12 | delim = args[i].substring( 12 );↵ | | 11 | cfg.configure( args[i].substring( 9 ) );↵
|
13 | }↵ | | 12 | }↵
|
14 | else if ( args[i].startsWith( "--config=" ) ) {↵ | | 13 | else if ( args[i].startsWith( "--text" ) ) {↵
|
15 | cfg.configure( args[i].substring( 9 ) );↵ | | 14 | doUpdate = false;↵
|
16 | }↵ | | 15 | }↵
|
17 | else if ( args[i].startsWith( "--naming=" ) ) {↵ | | 16 | else if ( args[i].startsWith( "--naming=" ) ) {↵
|
18 | cfg.setNamingStrategy(↵ | | 17 | cfg.setNamingStrategy(↵
|
19 | ( NamingStrategy ) ReflectHelper.classForName( args[i].substring( 9 ) )↵ | | 18 | ( NamingStrategy ) ReflectHelper.classForName( args[i].substring( 9 ) )↵
|
20 | .newInstance()↵ | | 19 | .newInstance()↵
|
21 | );↵ | | 20 | );↵
|
22 | } | | 21 | }↵
|
| | | 22 | }↵
|
| | | 23 | else {↵
|
| | | 24 | cfg.addFile( args[i] );↵
|
| | | 25 | }↵
|
|
| | | 26 | }
|