File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
model-server/src/main/kotlin/org/modelix/model/server Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,7 @@ internal class CmdLineArgs {
39
39
converter = BooleanConverter ::class
40
40
)
41
41
var schemaInit = false
42
- }
42
+
43
+ @Parameter(names = [" -h" , " --help" ], help = true )
44
+ var help = false
45
+ }
Original file line number Diff line number Diff line change @@ -54,7 +54,14 @@ object Main {
54
54
@JvmStatic
55
55
fun main (args : Array <String >) {
56
56
val cmdLineArgs = CmdLineArgs ()
57
- JCommander (cmdLineArgs).parse(* args)
57
+ val commander = JCommander (cmdLineArgs)
58
+ commander.parse(* args)
59
+
60
+ if (cmdLineArgs.help) {
61
+ commander.usage()
62
+ return
63
+ }
64
+
58
65
LOG .info(" Max memory (bytes): " + Runtime .getRuntime().maxMemory())
59
66
LOG .info(" Server process started" )
60
67
LOG .info(" In memory: " + cmdLineArgs.inmemory)
@@ -228,4 +235,4 @@ object Main {
228
235
}
229
236
}
230
237
})
231
- }
238
+ }
You can’t perform that action at this time.
0 commit comments