]> git.lizzy.rs Git - rust.git/commitdiff
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)
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)

1  2 
src/librustpkg/context.rs
src/librustpkg/lib.rs
src/librustpkg/usage.rs

Simple merge
Simple merge
Simple merge