aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 1f0464f..17a6645 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -203,16 +203,11 @@ main (int argc, char* argv[])
}
// Merge all the individual buildspec arguments into a single string.
- // Instead, we could also parse them individually (and merge the
- // result). The benefit of doing it this way is potentially better
- // diagnostics (i.e., we could have used <buildspec-1>, <buildspec-2>
- // to give the idea about which argument is invalid).
- //
- // Or we could separate arguments with newlines so that a line number
- // signifies the argument number.
+ // We wse newlines to separate arguments so that line numbers in
+ // diagnostics signify argument numbers. Clever, huh?
//
if (argn != 0)
- args += ' ';
+ args += '\n';
args += s;