Fixing --help string for -p option

* Tweaked the profile mananger to allow to load profiles either with or
without the file extension
* Changed the --help string to reflect the change
This commit is contained in:
Chris 2021-03-24 23:05:21 +11:00 committed by Adam Honse
parent 69cb7a0d9e
commit d65def0179
2 changed files with 2 additions and 4 deletions

View file

@ -133,7 +133,7 @@ std::vector<RGBController*> ProfileManager::LoadProfileToList
}
else
{
filename += ".orp";
filename += ((filename.substr(filename.size() - 4)==".orp") ? "" : ".orp");
}
/*---------------------------------------------------------*\
@ -318,8 +318,6 @@ bool ProfileManager::LoadProfileWithOptions
std::vector<bool> temp_controller_used;
bool ret_val = false;
std::string filename = configuration_directory + profile_name + ".orp";
/*---------------------------------------------------------*\
| Get the list of controllers from the resource manager |
\*---------------------------------------------------------*/