mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
timew: Sends all args to CLI
This commit is contained in:
parent
ca486d25b8
commit
d596936667
1 changed files with 8 additions and 0 deletions
|
@ -55,7 +55,15 @@ int main (int argc, const char** argv)
|
||||||
CLI cli;
|
CLI cli;
|
||||||
initializeEntities (cli);
|
initializeEntities (cli);
|
||||||
|
|
||||||
|
// Capture the args.
|
||||||
|
for (int i = 0; i < argc; i++)
|
||||||
|
cli.add (argv[i]);
|
||||||
|
|
||||||
|
// TODO Remove.
|
||||||
|
std::cout << cli.dump () << "\n";
|
||||||
|
|
||||||
// Make a vector of args, instead of argc/argv.
|
// Make a vector of args, instead of argc/argv.
|
||||||
|
// TODO Deprecated.
|
||||||
std::vector <std::string> args;
|
std::vector <std::string> args;
|
||||||
for (int i = 0; i < argc; i++)
|
for (int i = 0; i < argc; i++)
|
||||||
args.push_back (argv[i]);
|
args.push_back (argv[i]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue