Closed O-kasso closed 5 years ago
Sorry for the delay responding to this! I'm guessing that the problem is that --trace
is a global option rather than a command-specific one. By the time your alias is processed, the global options have probably already been handled. I don't know a great way around that, but one approach might be to set up another command called debug
that calls always_trace!
and then runs the destination command.
When trying to add a "debug" alias to a previously defined command, I can't pass the
--trace
flag to it, even though I could manually append--trace
when running the command from CLI manually.e.g.:
when running
debug
:amusingly, if I apply --trace to
debug
:It'd be great if I could hardcode always providing traceback for a specific alias, but not show the traceback by default. Is there an easy way to do this that I'm missing?