franck44 / evm-dis

An EVM bytecode disassembler/assembler
Apache License 2.0
29 stars 6 forks source link

Re factor Driver and CL arguments processing. #24

Closed franck44 closed 8 months ago

franck44 commented 8 months ago

The Driver has become overly complicated with the optional arguments and the way I implemented the processing. A more streamlines approach would be to get the arguments at the beginning and then compute/process/print out what is indicated by the arguments.

And example is a boolean argument. At the moment I pattern match against a Try but it may be simplified in checking whether the argument exists (is a Success) rather than pattern matching.

To do

Simplify arguments processing, and specifically boolean arguments.