btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit 58eab45c5b7694859bb7a893edb5cfdbf13eb7e7
parent 4a49a9c21f6b6ddb8788045229ec3b9fa571cf7f
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 13 Jun 2019 09:01:10 -0700

fix options

Diffstat:
Mmain.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/main.c b/main.c @@ -177,21 +177,21 @@ int main(int argc, const char *argv[]) for (int i = 1; i < argc; i++) { if (streq(argv[i], "-d") || streq(argv[i], "--decompile")) is_decompile = true; - else if (streq(argv[i], "+sh") || streq(argv[i], "--script-hex")) + else if (streq(argv[i], "-sh") || streq(argv[i], "--script-hex")) compile_options |= COMPILE_SHOW_SCRIPT_HEX; - else if (streq(argv[i], "+s") || streq(argv[i], "--script")) + else if (streq(argv[i], "-s") || streq(argv[i], "--script")) compile_options |= COMPILE_SHOW_SCRIPT; - else if (streq(argv[i], "+st") || streq(argv[i], "--stack")) + else if (streq(argv[i], "-t") || streq(argv[i], "--stack")) compile_options |= COMPILE_SHOW_STACK; - else if (streq(argv[i], "+sth") || streq(argv[i], "--stack-hex")) + else if (streq(argv[i], "-th") || streq(argv[i], "--stack-hex")) compile_options |= COMPILE_SHOW_STACK_HEX; - else if (streq(argv[i], "+r") || streq(argv[i], "--results")) + else if (streq(argv[i], "-r") || streq(argv[i], "--results")) compile_options |= COMPILE_SHOW_RESULTS; else if (streq(argv[i], "-l") || streq(argv[i], "--hide-labels")) hide_labels = 1; else if (streq(argv[i], "+l") || streq(argv[i], "--show-labels")) hide_labels = 0; - else if (streq(argv[i], "--abbreviate-data")) + else if (streq(argv[i], "-a") || streq(argv[i], "--abbreviate-data")) abbrev_data = true; else { last_opt = i-1;