[104696] branches/new-help-system/base/src/port/port.tcl

raimue at macports.org raimue at macports.org
Sun Mar 31 14:59:46 PDT 2013


Revision: 104696
          https://trac.macports.org/changeset/104696
Author:   raimue at macports.org
Date:     2013-03-31 14:59:46 -0700 (Sun, 31 Mar 2013)
Log Message:
-----------
port/port.tcl:
Handle invalid help topics by showing the portundocumented(7) man page

Modified Paths:
--------------
    branches/new-help-system/base/src/port/port.tcl

Modified: branches/new-help-system/base/src/port/port.tcl
===================================================================
--- branches/new-help-system/base/src/port/port.tcl	2013-03-31 21:53:53 UTC (rev 104695)
+++ branches/new-help-system/base/src/port/port.tcl	2013-03-31 21:59:46 UTC (rev 104696)
@@ -1828,11 +1828,14 @@
                 ui_error "\"port help ${action}\" is ambiguous: \n  port help [join $actions "\n  port help "]"
                 return 1
             }
+
+            # No valid command specified
+            set page ""
         }
     }
 
     set pagepath ${macports::prefix}/share/man/$page
-    if ![file exists $pagepath] {
+    if {$page == "" || ![file exists $pagepath]} {
         set page "man7/portundocumented.7$manext"
         set pagepath ${macports::prefix}/share/man/$page
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130331/52e67241/attachment.html>


More information about the macports-changes mailing list