Enhancement - cal symlink
- Automatically runs "task calendar ..." if "task" is symlinked to "cal". - Allows task to run as a replacement to Unix cal.
This commit is contained in:
@@ -71,7 +71,11 @@ void Context::initialize (int argc, char** argv)
|
|||||||
// Capture the args.
|
// Capture the args.
|
||||||
for (int i = 0; i < argc; ++i)
|
for (int i = 0; i < argc; ++i)
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
|
{
|
||||||
program = argv[i];
|
program = argv[i];
|
||||||
|
if (program.find ("cal") != std::string::npos)
|
||||||
|
args.push_back ("calendar");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
args.push_back (argv[i]);
|
args.push_back (argv[i]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user