aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-17 11:25:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-17 11:25:35 +0200
commit262d2b3711fefd0b82100d2aaeaf94f6d2e6ea77 (patch)
tree8887ba34cf3bd1b378683c855c9fadfc61f64063 /build2/b.cxx
parent120722059c8612fb13d7bf585a5593582a49220d (diff)
Make line numbers signify argument numbers in buildspec
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;