made some changes to command line parsing in main function
Revert "made some changes to command line parsing in main function"

This reverts commit 4fd809548bea22e77d16de381792461c98ecb598.