aboutsummaryrefslogtreecommitdiff
path: root/cmds/list.go
blob: 14fa53de29baf3359129394385449cba27a18d77 (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);
}