summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorChuck <chuck@intelligence.org>2019-09-16 09:35:38 -0700
committerLinus Heckemann <git@sphalerite.org>2019-11-04 15:11:45 +0100
commit2ddd2d07601d11f31f9bffa61060d680a1708b4c (patch)
tree50b08c4b1bf7ccfd7f34d13c543540837137a7d0 /nixos
parent94a068fe36f8b369071d8185f584d31923f7b00e (diff)
downloadnixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar.gz
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar.bz2
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar.lz
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar.xz
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.tar.zst
nixpkgs-2ddd2d07601d11f31f9bffa61060d680a1708b4c.zip
Explain why header goes on stderr
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/tools/nixos-option/nixos-option.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/installer/tools/nixos-option/nixos-option.cc b/nixos/modules/installer/tools/nixos-option/nixos-option.cc
index 5fd8f69d800..174b7a0cbb6 100644
--- a/nixos/modules/installer/tools/nixos-option/nixos-option.cc
+++ b/nixos/modules/installer/tools/nixos-option/nixos-option.cc
@@ -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;