summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 747c402..66889e3 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,10 @@ opts = Slop.parse do |o|
o.integer '--port', 'custom port', default: 80
o.bool '-v', '--verbose', 'enable verbose mode'
o.bool '-q', '--quiet', 'surpress output (quiet mode)'
+ o.on '--version', 'print the version' do
+ puts Slop::VERSION
+ exit
+ end
end
ARGV #=> -v --host 192.168.0.1