Passing the path as a command line argument
Added some more options.