mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context
- No longer segfaults when ::initialize (argç, argv) is called with zero arguments, which is what the shell is doing.
This commit is contained in:
parent
cd837a006c
commit
56a70b00c4
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ int Context::initialize (int argc, const char** argv)
|
||||||
assumeLocations ();
|
assumeLocations ();
|
||||||
|
|
||||||
// Initialize the command line parser.
|
// Initialize the command line parser.
|
||||||
program = argv[0];
|
program = (argc ? argv[0] : "task");
|
||||||
parser.initialize (argc, argv); // task arg0 arg1 ...
|
parser.initialize (argc, argv); // task arg0 arg1 ...
|
||||||
|
|
||||||
// echo one two -- three | task zero --> task zero one two
|
// echo one two -- three | task zero --> task zero one two
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue