Go by Example: Command-Line Subcommands
Go by Example : Command-Line Subcommands
| |
First invoke the foo subcommand. |
|
Now try bar. |
|
But bar won’t accept foo’s flags. |
|
Next we’ll look at environment variables, another common way to parameterize programs. |
Next example: Environment Variables .