summaryrefslogtreecommitdiffstats
path: root/bin/git
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-06 15:54:16 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-06 15:54:16 -0600
commitfcaa3199af5e5b58b52ca87206c7c715d65a911d (patch)
tree68b7212fcb43c1a533d6d3d291b8b20d5da791ba /bin/git
parentac5650aa9a9972f6b5419871fcb3a1936ed7607a (diff)
downloadconf-fcaa3199af5e5b58b52ca87206c7c715d65a911d.tar.gz
conf-fcaa3199af5e5b58b52ca87206c7c715d65a911d.zip
better usage for git hub
Diffstat (limited to 'bin/git')
-rwxr-xr-xbin/git/git-hub5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/git/git-hub b/bin/git/git-hub
index 5e3e5e0..cbfb4cb 100755
--- a/bin/git/git-hub
+++ b/bin/git/git-hub
@@ -47,7 +47,10 @@ sub run {
}
sub usage {
- die "usage";
+ my @subcommands = do { no strict 'refs'; grep { /^run_command_/ } keys %{ __PACKAGE__ . '::' };
+ die "usage: git hub <subcommand> [args...]\n"
+ . "subcommands:\n"
+ . " " . join "\n ", ;
}
sub run_command {