mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: No longer crudely counts arguments for default command
This commit is contained in:
parent
781be152a2
commit
6df9bed244
1 changed files with 1 additions and 6 deletions
|
@ -249,14 +249,9 @@ int dispatchCommand (
|
||||||
else if (command == "week") status = CmdReportWeek (cli, rules, database );
|
else if (command == "week") status = CmdReportWeek (cli, rules, database );
|
||||||
else status = CmdReport (cli, rules, database, extensions);
|
else status = CmdReport (cli, rules, database, extensions);
|
||||||
}
|
}
|
||||||
else if (cli._args.size () == 1)
|
|
||||||
{
|
|
||||||
status = CmdDefault (rules, database);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "No command specified.\n";
|
status = CmdDefault (rules, database);
|
||||||
status = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue