added a function to get the command line arguments