delve
delve copied to clipboard
feature request: support --eval-command/-ex equivalent
In GDB you can pass individual initial commands to run as command line arguments. E.g. gdb -ex 'b file.c:42' -ex 'b file.c:313'. This is useful if you already know what breakpoints you want to set for example, or to quickly iterate on configuring your setup.
The dlv exec command takes a file with initial commands to run through the --init flag. Would you consider adding a (repeated) flag to pass initial commands directly through the command line too? If yes, I'm happy to send a pull request that implements the feature.
many shells have the ability to pass the output of one argument as a file to another (for example dlv --init <(printf ...)) so this would be just a matter of ergonomics.