]> git.lizzy.rs Git - rust.git/commit
auto merge of #11470 : eminence/rust/rustpkg_help_test, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 11 Jan 2014 18:21:22 +0000 (10:21 -0800)
committerbors <bors@rust-lang.org>
Sat, 11 Jan 2014 18:21:22 +0000 (10:21 -0800)
commit91aec7c8a65db0768fdccc29706cba731101f7fc
tree8994b45e73cec6cd7ac674bab82e7c1785c00dc7
parent29e82c65b47130fb431aaca0b33935ecfcd09d85
parentdc21ca98331f181fabefe25f31464ff920f805fd
auto merge of #11470 : eminence/rust/rustpkg_help_test, r=alexcrichton

In general, you can run "rustpkg help <cmd>" to see some specific usage information for <cmd>.  However, this was handled in a very ad-hoc and buggy manner.  For example, running "rustpkg help prefer" would actually show you the usage information for the "uninstall" cmd.  Or "rustpkg help test" would show you the usage information for the "build" command.  Or "rustpkg help list" would just run the "list" command (and not show you anything usage information)

This commit attempts to fix this by making a new HelpCmd (and handling it explicitly)
src/librustpkg/context.rs
src/librustpkg/lib.rs
src/librustpkg/usage.rs