Skip to content

Commit 1acbdd4

Browse files
committed
Inherit parent command subcommands for showmemory/stack etc
Signed-off-by: Bhargava Shastry <[email protected]>
1 parent 5c8b5a7 commit 1acbdd4

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/BlockchainTestSubCommand.java

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,6 @@ public class BlockchainTestSubCommand implements Runnable {
112112
description = "Enable transaction tracing to stderr")
113113
private boolean enableTracing = false;
114114

115-
@Option(
116-
names = {"--trace-memory"},
117-
description = "Include memory in traces")
118-
private boolean traceMemory = false;
119-
120-
@Option(
121-
names = {"--trace-stack"},
122-
description = "Include stack in traces (default: true)")
123-
private boolean traceStack = true;
124-
125-
@Option(
126-
names = {"--trace-returndata"},
127-
description = "Include return data in traces")
128-
private boolean traceReturnData = false;
129-
130-
@Option(
131-
names = {"--trace-storage"},
132-
description = "Include storage changes in traces")
133-
private boolean traceStorage = false;
134-
135115
@Option(
136116
names = {"--trace-output"},
137117
description = "Output file for traces (default: stderr)")
@@ -303,7 +283,11 @@ private void traceTestSpecs(
303283
}
304284
tracerManager =
305285
new BlockTestTracerManager(
306-
traceWriter, traceMemory, traceStack, traceReturnData, traceStorage);
286+
traceWriter,
287+
parentCommand.showMemory,
288+
!parentCommand.hideStack,
289+
parentCommand.showReturnData,
290+
parentCommand.showStorage);
307291
} catch (final IOException e) {
308292
parentCommand.out.println("Failed to open trace output: " + e.getMessage());
309293
return;

0 commit comments

Comments
 (0)