summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2020-12-08 20:18:01 +0500
committerGitHub <[email protected]>2020-12-08 20:18:01 +0500
commitec698c99412d29639d1fbae3468236445cc4a872 (patch)
tree5606657a346f3dae96b18bf46fba8d17e957419d /cmd
parenta60d0523c1afb6c1983b522d1477b8ef319d5b99 (diff)
Add `rr --version` flag support
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/cmd/root.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/rr/cmd/root.go b/cmd/rr/cmd/root.go
index 456cfc6a..e67a4e62 100644
--- a/cmd/rr/cmd/root.go
+++ b/cmd/rr/cmd/root.go
@@ -55,6 +55,7 @@ var (
Use: "rr",
SilenceErrors: true,
SilenceUsage: true,
+ Version: Version, // allows to use `--version` flag
Short: util.Sprintf(
"<green>RoadRunner</reset>, PHP Application Server\nVersion: <yellow+hb>%s</reset>, %s",
Version,