I have declared the following enum :
enum periods {one, five, ten, fifteen, thirty};
and now I want to pass it as a commandline argument
You have to explicitly cast it:
mp=static_cast(atoi(min_prd.c_str()));