Commit 96617757 authored by ale's avatar ale

Set a default for restore --target

parent 1095003f
Pipeline #4217 failed with stages
in 4 seconds
......@@ -31,7 +31,7 @@ func (c *restoreCommand) Usage() string {
func (c *restoreCommand) SetFlags(f *flag.FlagSet) {
f.StringVar(&c.configPath, "config", "/etc/tabacco/agent.yml", "configuration `file`")
f.StringVar(&c.httpAddr, "http-addr", ":5330", "listen `address` for the HTTP server exporting metrics and debugging")
f.StringVar(&c.targetDir, "target", "", "target `path` for restore")
f.StringVar(&c.targetDir, "target", ".", "target `path` for restore")
}
func (c *restoreCommand) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment