Bug in Multichain-cli for datadir option?

+1 vote
I am granting a node after bringing up a new chain on our test server. We are using the -datadir=b:\

I am getting error: Error parsing JSON:-datadir=b:\

multichain-util and multichaind both accepted b:\ drive letter
asked Aug 1, 2017 by MaSsv
retagged Aug 1, 2017 by MaSsv

1 Answer

+1 vote
 
Best answer
I found the issue.

I was using the -datadir at the end of the command where it is expecting after the chainname and before the grant param.

as in

multichain-cli chainname -datadir=b: grant ipaddress connect  -> works

multichain-cli chainname grant ipaddress connect  -datadir=b: -> does not work
answered Aug 1, 2017 by MaSsv
Yes, that would explain it. In multichain-cli the API command and its parameters have to come after parameters which modify the behavior of multichain-cli itself.
...