diff --git a/flag.go b/flag.go index 7885791..38ebf93 100644 --- a/flag.go +++ b/flag.go @@ -10,6 +10,7 @@ var runWithRemote bool func SetArgs() { f := flag.NewFlagSet(os.Args[0], flag.ExitOnError) f.BoolVar(&runWithRemote, "remote", false, "will updates remote repo issue(need remote_config option in conf file)") + f.BoolVar(&runWithRemote, "r", false, "will updates remote repo issue(need remote_config option in conf file)") f.Parse(os.Args[1:]) for 0 < f.NArg() { f.Parse(f.Args()[1:])