Provide a wrapper in CLI for easy stacktrace pruning

As suggested by @pragdave