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