Skip to content

Commit 5b89696

Browse files
committed
update readme for inputparser
1 parent 0f48903 commit 5b89696

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Diff for: README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,18 @@ e.g.
107107

108108
### initialize redis class
109109

110-
>> help redis
111-
redis mex client for Matlab and GNU Octave
112-
r = redis()
113-
r = redis(hostname)
114-
r = redis(hostname, port)
115-
r = redis(hostname, port, db)
116-
r = redis(hostname, port, db, pwd)
117-
r = redis(hostname, port, db, pwd, precision)
118-
r = redis(hostname, port, db, pwd, precision, batchsize)
110+
`redis()` class is using inputParser, so you can switch inputarguments as you like
111+
112+
>> help redis
113+
redis mex client for Matlab and GNU Octave
114+
r = redis()
115+
r = redis('hostname', '127.0.0.1')
116+
r = redis('port', 6379)
117+
r = redis('dbnr', 0)
118+
r = redis('password', 'foobar')
119+
r = redis('precision', 16)
120+
r = redis('batchsize', 128)
121+
r = redis('hostname', 'some.domain', 'password', 'thisone')
119122

120123
### properties
121124

0 commit comments

Comments
 (0)