Implement --command as documented in README.md