TW-1658: rc override to non-existent alternate rc quietly uses default
- Thanks to David Patrick. - The 'rc:' argument now means 'use all defaults', which assumes 'data.location=~/.task', so this will not work for anyone using a different location.
This commit is contained in:
@@ -254,7 +254,7 @@ void CLI2::getOverride (int argc, const char** argv, std::string& home, File& rc
|
||||
if (raw == "--")
|
||||
return;
|
||||
|
||||
if (raw.length () > 3 &&
|
||||
if (raw.length () >= 3 &&
|
||||
raw.substr (0, 3) == "rc:")
|
||||
{
|
||||
rc = raw.substr (3);
|
||||
|
||||
Reference in New Issue
Block a user