Moved part of the code from `initialize()` to `run()` to prevent the tool from printing usage information (#1821)