From 262d2b3711fefd0b82100d2aaeaf94f6d2e6ea77 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Mar 2017 11:25:35 +0200 Subject: Make line numbers signify argument numbers in buildspec --- build2/b.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'build2/b.cxx') 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 , - // 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; -- cgit v1.1