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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user