Simplified from Cobra and will be maintained continuously.
$ <CLI_NAME> <flag> <args>
A tool supports adding sub commands.
rootCmd := &command.Command{
Use: "root"
}
// new a subcmd
subCmd := &command.Command{
use: "next"
}
subCmd.addCommand(&command.Command{
use: "next_sub",
})
// add the sub to root
rootCmd.addCommand(subCmd)
rootCmd.Execute()