forked from TrueCloudLab/frostfs-node
[#667] ir: Make --version
output same as in CLI
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
b848c9bd9f
commit
eadc3a4de9
1 changed files with 7 additions and 2 deletions
|
@ -42,8 +42,13 @@ func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if *versionFlag {
|
if *versionFlag {
|
||||||
fmt.Println("neofs-ir", misc.Version)
|
fmt.Printf(
|
||||||
fmt.Println("debug:", misc.Debug)
|
"Version: %s \nBuild: %s \nDebug: %s\n",
|
||||||
|
misc.Version,
|
||||||
|
misc.Build,
|
||||||
|
misc.Debug,
|
||||||
|
)
|
||||||
|
|
||||||
os.Exit(SuccessReturnCode)
|
os.Exit(SuccessReturnCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue