[#667] ir: Make --version output same as in CLI

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-07-06 16:20:11 +03:00 committed by Leonard Lyubich
parent b848c9bd9f
commit eadc3a4de9

View file

@ -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)
} }