touched up cp.cpp so that it accepts flags
Merge pull request #3 from nmlapre/ls

touched up cp.cpp so that it accepts flags