[#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()
if *versionFlag {
fmt.Println("neofs-ir", misc.Version)
fmt.Println("debug:", misc.Debug)
fmt.Printf(
"Version: %s \nBuild: %s \nDebug: %s\n",
misc.Version,
misc.Build,
misc.Debug,
)
os.Exit(SuccessReturnCode)
}