1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
10 "git.curoverse.com/arvados.git/lib/cmd"
14 type LegacyFlagValues struct {
21 func LegacyFlagSet() (cmd.FlagSet, *LegacyFlagValues) {
22 values := &LegacyFlagValues{Format: "json"}
23 flags := getopt.NewFlagSet("", flag.ContinueOnError)
24 flags.BoolVar(&values.DryRun, "dry-run", false, "Don't actually do anything")
25 flags.Alias("n", "dry-run")
26 flags.StringVar(&values.Format, "format", values.Format, "Output format: json, yaml, or uuid")
27 flags.Alias("f", "format")
28 flags.BoolVar(&values.Short, "short", false, "Return only UUIDs (equivalent to --format=uuid)")
29 flags.Alias("s", "short")
30 flags.BoolVar(&values.Verbose, "verbose", false, "Print more debug/progress messages on stderr")
31 flags.Alias("v", "verbose")