Skip to content

Commit 0d66ec7

Browse files
committed
fix flags in commands
1 parent 4f7ad99 commit 0d66ec7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cmd/copy-pad.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
)
2121

2222
func init() {
23-
copyPadCmd.LocalFlags().BoolVar(&forceCopy, "force", false, "If set and the destination pad exists, it will be overwritten.")
23+
copyPadCmd.Flags().BoolVar(&forceCopy, "force", false, "If set and the destination pad exists, it will be overwritten.")
2424

2525
rootCmd.AddCommand(copyPadCmd)
2626
}

cmd/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
)
2424

2525
func init() {
26-
metricsCmd.LocalFlags().StringVar(&listenAddr, "listen.addr", ":9012", "")
26+
metricsCmd.Flags().StringVar(&listenAddr, "listen.addr", ":9012", "")
2727

2828
rootCmd.AddCommand(metricsCmd)
2929
}

cmd/move-pad.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
)
2121

2222
func init() {
23-
movePadCmd.LocalFlags().BoolVar(&forceMove, "force", false, "If set and the destination pad exists, it will be overwritten.")
23+
movePadCmd.Flags().BoolVar(&forceMove, "force", false, "If set and the destination pad exists, it will be overwritten.")
2424

2525
rootCmd.AddCommand(movePadCmd)
2626
}

cmd/purge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Pads with the suffix "-keep" will be deleted after 365 days of inactivity.
3030
)
3131

3232
func init() {
33-
purgeCmd.LocalFlags().IntVar(&concurrency, "concurrency", 4, "Concurrency for the purge process")
34-
purgeCmd.LocalFlags().BoolVar(&dryRun, "dry-run", false, "Enable dry-run")
33+
purgeCmd.Flags().IntVar(&concurrency, "concurrency", 4, "Concurrency for the purge process")
34+
purgeCmd.Flags().BoolVar(&dryRun, "dry-run", false, "Enable dry-run")
3535

3636
rootCmd.AddCommand(purgeCmd)
3737
}

0 commit comments

Comments
 (0)