Make it a cmdline tool