flags

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 3 Imported by: 0

README

Flags

This serves as an example to create a CLI with flags.

Code

Output:

$ go run examples/flags/main.go -f hello.go
I am the root command!
-f, --file flag value: hello.go

Help menu:

$ go run examples/flags/main.go --help
CLI v0.1.0 - CLI with flags

This is an example CLI created with ricecake (contains flags).

Flags:

  -f, --filename string   Filename
      --help              Get    help for the 'cli' command.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL