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

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
support/v0.27
Pavel Karpy 2021-07-06 16:20:11 +03:00 committed by Leonard Lyubich
parent b848c9bd9f
commit eadc3a4de9
1 changed files with 7 additions and 2 deletions

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