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()
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue