diff --git a/dgraph/cmd/bulk/run.go b/dgraph/cmd/bulk/run.go index 2798776087a..09fc9a82a8b 100644 --- a/dgraph/cmd/bulk/run.go +++ b/dgraph/cmd/bulk/run.go @@ -70,7 +70,7 @@ func init() { flag.Int("shufflers", 1, "Number of shufflers to run concurrently. Increasing this can improve performance, and "+ "must be less than or equal to the number of reduce shards.") - flag.Bool("version", false, "Prints the version of dgraph-bulk-loader.") + flag.Bool("version", false, "Prints the version of Dgraph Bulk Loader.") flag.BoolP("store_xids", "x", false, "Generate an xid edge for each node.") flag.StringP("zero", "z", "localhost:5080", "gRPC address for Dgraph zero") // TODO: Potentially move http server to main. @@ -108,8 +108,8 @@ func run() { ReduceShards: Bulk.Conf.GetInt("reduce_shards"), } + x.PrintVersion() if opt.Version { - x.PrintVersion() os.Exit(0) } if opt.RDFDir == "" || opt.SchemaFile == "" { diff --git a/dgraph/cmd/live/run.go b/dgraph/cmd/live/run.go index 67ffae11c34..8db0f5c0733 100644 --- a/dgraph/cmd/live/run.go +++ b/dgraph/cmd/live/run.go @@ -317,6 +317,7 @@ func setup(opts batchMutationOptions, dc *dgo.Dgraph) *loader { } func run() error { + x.PrintVersion() opt = options{ files: Live.Conf.GetString("rdfs"), schemaFile: Live.Conf.GetString("schema"),