2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00

cmd/loop: use loop.Version() for loop cli version

This commit is contained in:
Olaoluwa Osuntokun 2019-03-20 17:16:33 -07:00
parent fff001fd2e
commit f089ff3484
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -9,6 +9,7 @@ import (
"github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"github.com/lightninglabs/loop"
"github.com/lightninglabs/loop/looprpc" "github.com/lightninglabs/loop/looprpc"
"github.com/lightninglabs/loop/swap" "github.com/lightninglabs/loop/swap"
@ -50,7 +51,7 @@ func fatal(err error) {
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Version = "0.0.1" app.Version = loop.Version()
app.Name = "loop" app.Name = "loop"
app.Usage = "control plane for your loopd" app.Usage = "control plane for your loopd"
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{