- No longer segfaults when ::initialize (argç, argv) is called with zero
  arguments, which is what the shell is doing.
This commit is contained in:
Paul Beckingham 2014-06-03 00:55:18 -04:00
parent cd837a006c
commit 56a70b00c4

View file

@ -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