diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 511bd2745d48cec31aa4e256f1e361f0ed603ffa..5272f62ef2b8e86b36a0bf0c8dec50cba191b7fc 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -70,12 +70,14 @@ For the full command list, see the COMMANDS section.
     If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and
     will thus not add the MD5 to the formula for you.
 
-  * `deps [--1]` <formula>:
+  * `deps [--1] [-n]` <formula>:
     Show <formula>'s dependencies.
 
     If `--1` is passed, only show dependencies one level down, instead of
     recursing.
 
+    If `-n` is passed, shows dependencies in topological order.
+
   * `doctor`:
     Check your system for potential problems.
 
diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb
index dfacbd1bee133ccddfacf161ac3e6d6b79734ac6..eed04ae0f3c5a5c3bc48e266b213737c4a9cb299 100644
--- a/Library/Homebrew/cmd/deps.rb
+++ b/Library/Homebrew/cmd/deps.rb
@@ -4,8 +4,7 @@ module Homebrew extend self
   def deps
     if ARGV.include? '--all'
       Formula.each do |f|
-        # TODO add a space after the colon??
-        puts "#{f.name}:#{f.deps*' '}"
+        puts "#{f.name}: #{f.deps*' '}"
       end
     else
       all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 388f9389cd4baeb06a47d9565003d1747b9791d7..0975d3b8c4ca076366f06c20e55399b774d098bd 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -78,12 +78,15 @@ Generate a formula for the downloadable file at \fIURL\fR and opens it in $EDITO
 If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the cache and will thus not add the MD5 to the formula for you\.
 .
 .TP
-\fBdeps [\-\-1]\fR \fIformula\fR
+\fBdeps [\-\-1] [\-n]\fR \fIformula\fR
 Show \fIformula\fR\'s dependencies\.
 .
 .IP
 If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\.
 .
+.IP
+If \fB\-n\fR is passed, shows dependencies in topological order\.
+.
 .TP
 \fBdoctor\fR
 Check your system for potential problems\.