Create a simple program

Report a typo

We need to create a simple program using kotlinx-cli that takes the user's name as an argument and prints a greeting.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                parser.parse(args)
              
                println("Hello, $name!")
              
                val parser = ArgParser("example")
              
                import kotlinx.cli.*
              
                fun main(args: Array<String>) {
              
                }
              
                val name by parser.option(ArgType.String, description = "Your name").required()
              
___

Create a free account to access the full topic