Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eba478471f |
@@ -50,6 +50,8 @@ func main() {
|
||||
configFlag := fs.String("f", "", "config file path")
|
||||
fs.StringVar(configFlag, "config", "", "alias for -f")
|
||||
saveConfig := fs.Bool("save-config", false, "write default config and exit")
|
||||
showVersion := fs.Bool("v", false, "print version and exit")
|
||||
fs.BoolVar(showVersion, "version", false, "alias for -v")
|
||||
|
||||
rest := os.Args[1:]
|
||||
var args []string
|
||||
@@ -63,6 +65,11 @@ func main() {
|
||||
rest = rest[1:]
|
||||
}
|
||||
|
||||
if *showVersion {
|
||||
fmt.Println(nadir.Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if *configFlag != "" {
|
||||
os.Setenv("CONFIG_PATH", *configFlag)
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user