Closed ank-everstake closed 4 years ago
This is due to the newly-introduced Getopt-like command line options parser. It attempts to parse a command line argument beginning with "-1" as a short option '1' with some parameters, and fails because there is no such option.
The obvious way to circumvent this problem is to insert --
after all command line options and before the rest of the command line arguments:
./fift -s wallet.fif wallet_19_11_2019 -B recover-query.boc -- -1:3333333333333333333333333333333333333333333333333333333333333333 40 1. result
Note that -B recover-query.boc
has to be moved before --
.
Ok, it's a feature then. So, the documentation should be updated on test.ton.org and obviously usage sections in smart-contract sources, because now it is outdated:
usage: wallet.fif <filename-base> <dest-addr> <seqno> <amount> [-n|-b] [-B <body-boc>] [-C <comment>] [<savefile>]
What's wrong with "usage" sections?
We have introduced an optional incompatibility with getopt in commit d41ce55305718d207867f0dac60319ec4b6846f2 by making our GetOpt ignore all options beginning with -
followed by a decimal digit, and enabled this behavior for wallet.fif
and similar scripts. You can now use addresses -1:xxx
as before without any additional manipulations.
Using commit.
Can't make request to elector using fift. Apparently the problem is in interpreting adresses.
Maybe it is a regression?
Also, we need ability to use raw addresses to omit converting in scripts, so please don't propose using base64-coded.