Finish `lookup` subcommand