@@ -8,42 +8,42 @@ import java.io.File
8
8
import java.util.LinkedList
9
9
10
10
internal class CmdLineArgs {
11
- @Parameter(names = [" -secret" ], description = " Path to the secretfile" , converter = FileConverter ::class )
11
+ @Parameter(names = [" -secret" , " --secret " ], description = " Path to the secretfile" , converter = FileConverter ::class )
12
12
var secretFile = File (" /secrets/modelsecret/modelsecret.txt" )
13
13
14
14
@Parameter(
15
- names = [" -jdbcconf" ],
15
+ names = [" -jdbcconf" , " --jdbcconf " ],
16
16
description = " Path to the JDBC configuration file" ,
17
17
converter = FileConverter ::class ,
18
18
)
19
19
var jdbcConfFile: File ? = null
20
20
21
- @Parameter(names = [" -inmemory" ], description = " Use in-memory storage" , converter = BooleanConverter ::class )
21
+ @Parameter(names = [" -inmemory" , " --inmemory " ], description = " Use in-memory storage" , converter = BooleanConverter ::class )
22
22
var inmemory = false
23
23
24
24
@Parameter(names = [" --local-persistence" ], description = " Use ignite with local disk persistence" , converter = BooleanConverter ::class )
25
25
var localPersistence = false
26
26
27
- @Parameter(names = [" -dumpout" ], description = " Dump in memory storage" , converter = StringConverter ::class )
27
+ @Parameter(names = [" -dumpout" , " --dumpout " ], description = " Dump in memory storage" , converter = StringConverter ::class )
28
28
var dumpOutName: String? = null
29
29
30
- @Parameter(names = [" -dumpin" ], description = " Read dump in memory storage" , converter = StringConverter ::class )
30
+ @Parameter(names = [" -dumpin" , " --dumpin " ], description = " Read dump in memory storage" , converter = StringConverter ::class )
31
31
var dumpInName: String? = null
32
32
33
- @Parameter(names = [" -port" ], description = " Set port" , converter = IntegerConverter ::class )
33
+ @Parameter(names = [" -port" , " --port " ], description = " Set port" , converter = IntegerConverter ::class )
34
34
var port: Int? = null
35
35
36
- @Parameter(names = [" -set" ], description = " Set values" , arity = 2 )
36
+ @Parameter(names = [" -set" , " --set " ], description = " Set values" , arity = 2 )
37
37
var setValues: List <String > = LinkedList <String >()
38
38
39
39
@Parameter(
40
- names = [" -schemainit" ],
40
+ names = [" -schemainit" , " --schemainit " ],
41
41
description = " Initialize the schema, if necessary" ,
42
42
converter = BooleanConverter ::class ,
43
43
)
44
44
var schemaInit = false
45
45
46
- @Parameter(names = [" -noswagger" ], description = " Disables SwaggerUI at endpoint '/swagger'" , converter = BooleanConverter ::class )
46
+ @Parameter(names = [" -noswagger" , " --noswagger " ], description = " Disables SwaggerUI at endpoint '/swagger'" , converter = BooleanConverter ::class )
47
47
var noSwaggerUi: Boolean = false
48
48
49
49
@Parameter(names = [" -h" , " --help" ], help = true )
0 commit comments