summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-08 18:28:49 +0300
committerGitHub <[email protected]>2020-12-08 18:28:49 +0300
commit95bcb4c3f390bebb91041db710dbb4bde994d2fe (patch)
tree87f3360ed3ad13a508a16b6bbf58a68210a69f02
parent2c9e686a1bcfb794bb268d861d27af70f07f232e (diff)
parentd51b34a1bfb8c97c661d6a8755dd9b0d66ec0c54 (diff)
Merge pull request #438 from tarampampam/patch-1
Add `rr --version` flag
-rw-r--r--CHANGELOG.md4
-rw-r--r--cmd/rr/cmd/root.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index db8ad552..030b8c06 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
CHANGELOG
=========
+UNRELEASED
+----------
+- Add `rr --version` flag support
+
v1.9.0 (02.12.2020)
-------------------
- Update PHP minimal supported version to 7.3
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,