rgb-node icon indicating copy to clipboard operation
rgb-node copied to clipboard

Found argument 'invoice' which wasn't expected, or isn't valid in this context

Open josediegorobles opened this issue 3 years ago • 4 comments

I'm trying to make and invoice according to README and I get this at this step:

rgb1-cli fungible invoice <contract_id> 500 : error: Found argument 'invoice' which wasn't expected, or isn't valid in this context

If you tried to supply invoice as a PATTERN use -- invoice

USAGE: rgb-cli fungible [FLAGS] <SUBCOMMAND>

It's the same if I use rgb1-cli -vvvv fungible invoice etc.

josediegorobles avatar Apr 13 '21 08:04 josediegorobles

Which version are you used, produced from git clone from master + cargo build – or one after cargo install?

dr-orlovsky avatar Apr 13 '21 13:04 dr-orlovsky

Oh, I see, I produced it by cargo install. It can be closed.

josediegorobles avatar Apr 13 '21 13:04 josediegorobles

So the problem is now that with cargo build it only says:

Finished release [optimized] target(s) in 0.25s

and then, with:

target/release/rgbd --data-dir ~/.rgb --bin-dir target/release -vvvv --contract fungible

bash: target/release/rgbd: No such file or directory

josediegorobles avatar Apr 13 '21 14:04 josediegorobles

Ok, I did a build with:

cargo build--locked --features all

It worked...

But I have the same problem again:

Found argument 'invoice' which wasn't expected, or isn't valid in this context

josediegorobles avatar Apr 13 '21 16:04 josediegorobles