mirror of
https://github.com/corda/corda.git
synced 2025-02-01 08:48:09 +00:00
Added some simple documentation to the IRSDemo.
This commit is contained in:
parent
3651bd54aa
commit
98b02e9d33
@ -256,7 +256,7 @@ fun runIRSDemo(args: Array<String>): Int {
|
||||
CliParams.parse(CliParamsSpec.parser.parse(*args))
|
||||
} catch (e: Exception) {
|
||||
println(e)
|
||||
printHelp()
|
||||
printHelp(CliParamsSpec.parser)
|
||||
return 1
|
||||
}
|
||||
|
||||
@ -462,8 +462,10 @@ private fun createDefaultConfigFile(configFile: File, legalName: String) {
|
||||
""".trimIndent().toByteArray())
|
||||
}
|
||||
|
||||
private fun printHelp() {
|
||||
private fun printHelp(parser: OptionParser) {
|
||||
println("""
|
||||
Please refer to the documentation in docs/build/index.html to learn how to run the demo.
|
||||
Usage: irsdemo --role [NodeA|NodeB|Trade|Date] [<TradeName>|<DateValue>] [options]
|
||||
Please refer to the documentation in docs/build/index.html for more info.
|
||||
|
||||
""".trimIndent())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user