Using below syntax, you can get help about a command.
Syntax
help {command_name}
Example 1
shell:>help add NAME add - Add two integers together. SYNOPSYS add [--a] int [--b] int OPTIONS --a int [Mandatory] --b int [Mandatory]
Example 2:
shell:>help greet-user NAME greet-user - Commands to greet user SYNOPSYS greet-user [[-name] string] OPTIONS -name string [Optional, default = User]
You can download complete application from this link.
https://github.com/harikrishna553/springboot/tree/master/shell/hello-world
No comments:
Post a Comment