summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Jonsson <olle.jonsson@gmail.com>2017-10-28 06:52:00 +0200
committerGitHub <noreply@github.com>2017-10-28 06:52:00 +0200
commit641c537eca68286620c13256f2d85aeb1d116ed4 (patch)
tree112bdd3280df6f948140ee48079b738f040b7d97
parent6d75ba62bbf4f7e38e9977c4e374d0e9964b43ee (diff)
parent626389f090d615f20993ddf5a436e940e7d72ccf (diff)
downloadslop-641c537eca68286620c13256f2d85aeb1d116ed4.tar.gz
Merge pull request #221 from woodruffw/readme-example-fix
README: Fix example to include required option
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4d686ce..5c0142a 100644
--- a/README.md
+++ b/README.md
@@ -30,14 +30,15 @@ opts = Slop.parse do |o|
end
end
-ARGV #=> -v --host 192.168.0.1 --check-ssl-certificate
+ARGV #=> -v --login alice --host 192.168.0.1 --check-ssl-certificate
opts[:host] #=> 192.168.0.1
+opts[:login] #=> alice
opts.verbose? #=> true
opts.quiet? #=> false
opts.check_ssl_certificate? #=> true
-opts.to_hash #=> { host: "192.168.0.1", port: 80, verbose: true, quiet: false, check_ssl_certificate: true }
+opts.to_hash #=> { host: "192.168.0.1", login: "alice", port: 80, verbose: true, quiet: false, check_ssl_certificate: true }
```
Note that the block we've added to the `--version` flag will be executed