Explain why header goes on stderr
This commit is contained in:
parent
94a068fe36
commit
2ddd2d0760
|
@ -430,8 +430,8 @@ void printOption(Context & ctx, Out & out, const std::string & path, Value & opt
|
|||
|
||||
void printListing(Out & out, Value & v)
|
||||
{
|
||||
// Print this header on stderr rather than stdout because the old shell script
|
||||
// implementation did. I don't know why.
|
||||
// Print this header on stderr rather than stdout, presumably to make it
|
||||
// slightly easier to consume this output in other tools.
|
||||
std::cerr << "This attribute set contains:\n";
|
||||
for (const auto & a : v.attrs->lexicographicOrder()) {
|
||||
std::string name = a->name;
|
||||
|
|
Loading…
Reference in a new issue