blob: d2b9a03310596e1060eeec3e6ea4655e8224dda9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package cmd
import (
"flag"
"fmt"
)
func List(params []string) {
flags := flag.NewFlagSet("list", flag.ExitOnError)
var withPaths bool
const WITH_PATHS_HELP = "print paths to the provided reference within the snapshot"
flags.BoolVar(&withPaths, "paths", false, WITH_PATHS_HELP);
flags.BoolVar(&withPaths, "p", false, WITH_PATHS_HELP);
flags.Parse(params);
fmt.Printf("Your flag is: %t", withPaths);
}
|