Smallville7123
04/17/2019, 4:47 AMNate
04/17/2019, 4:51 AMwhen(it) {
"", "-h", "--help" -> printHelp()
}
would be a startSmallville7123
04/17/2019, 4:53 AMKatie Levy
04/17/2019, 4:55 AMprocessOption(option: String)
fun main(a: Array<String>) {
if (a.isEmpty()) processSTDIN()
else a.forEach {
processOption(it)
}
}
Smallville7123
04/17/2019, 4:57 AMKatie Levy
04/17/2019, 4:58 AMSmallville7123
04/17/2019, 4:58 AMmain()
so... : Pgit("--clone $URL")
or something, so i dont see a need to modulize its argument parsing nor add it to the library itselfNate
04/17/2019, 5:05 AMa.size == 1
check in that case?Smallville7123
04/17/2019, 5:05 AMvm(
cpu = cpu(
architecture = "x86",
model = "generic",
cores = 4
),
gpu = gpu(
model = "generic",
memory = 512,
size = "MB"
),
ram = ram(
memory = "1"
size = "GB"
),
components(
keyboard = generic,
screen = generic,
mouse = none
)
).run(kernel)
Katie Levy
04/17/2019, 5:31 AMSmallville7123
04/17/2019, 5:32 AM