Commit 96617757 authored by ale's avatar ale
Browse files

Set a default for restore --target

parent 1095003f
......@@ -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 {
Supports Markdown
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