Added -cmd command-line parameter

Still working it, though.