Compare commits
2 commits
a48f122296
...
5a80ac7169
Author | SHA1 | Date | |
---|---|---|---|
5a80ac7169 | |||
4ab78f4028 |
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
kotlinc app/src/main/kotlin/de/jotoho/waituntil/*.kt -jvm-target 16 -include-runtime -d waituntil.jar
|
||||
# shellcheck disable=SC2046
|
||||
# Word splitting in find results is intentional!
|
||||
kotlinc $(find src/main -type f -iname '*.kt') -jvm-target 16 -include-runtime -d waituntil.jar
|
||||
|
|
|
@ -23,9 +23,8 @@ fun main(args: Array<String>) {
|
|||
options.add(arg.substring(startIndex=2))
|
||||
}
|
||||
else if (arg.startsWith('-')) {
|
||||
val translation = optionDictionary[arg]
|
||||
if (translation != null)
|
||||
options.add(translation.substring(startIndex=2))
|
||||
if (optionDictionary.containsKey(arg))
|
||||
options.add(optionDictionary[arg]!!.substring(startIndex=2))
|
||||
else
|
||||
System.err.println("Short-hand '$arg' does not exist. Ignoring!")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue