LoganHenderson
LoganHenderson

Reputation: 1452

Ignoring Optional Parameter in CLI function

I am trying to interact with a c++ command line interface. In the documentation they show the definition

listtransactions ( "account" count from includeWatchonly)

All values in () are optional parameters. Calling list listtransactions "AccountName" X will give me the last X transactions from AccountName.

I would like to supply the parameter for Count but not for Account. The goal being to retrieve the last X transactions form ANY account. However this does not work and it seems that the cli is assuming the count I am passing in is the account name and returns no transactions.

I have tried supplying * for the first parameter but that does not work either.

How can I accomplish this?

Upvotes: 0

Views: 91

Answers (1)

LoganHenderson
LoganHenderson

Reputation: 1452

When using an unquoted wildcard the shell will expand that input before it reaches the calling application. I needed to send the wild card literal down to c++... quoting the wild card does that. listtransactions "*" count gave me desired output

Upvotes: 0

Related Questions