Support for type

@bifodus I find it clearer to test for truthiness first.  `if(line.tokens[2])...`.  This is another example where #5 would help.  We could do `if(line.args.query)...` once #5 is complete.