Revision: 104696 https://trac.macports.org/changeset/104696 Author: raimue@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 }
participants (1)
-
raimue@macports.org