Support for type

@bifodus once we handle #5, I think this can get refactored to `if(line.args.query)...`.