1package Vimana::Command::Help; 2use warnings; 3use strict; 4use base qw(App::CLI::Command); 5 6sub run { 7 my ($self,$topic) = @_; 8 9 # if $arg is topic 10 11 # if $arg is command 12 if (my $cmd = eval { Vimana::Command->get_cmd ($topic) }) { 13 $cmd->usage(1); 14 } 15 else { 16 17 print <<END; 18 19Usage: 20 21 \$ vimana [command] [arguments] 22 23Avaliable Commands: 24 25 update - update index for searching. 26 27 install (i) - install package 28 29 install [options] [plugin name] 30 31 Options: 32 33 -r,--runtime-path [path] 34 install to [path] runtime path. 35 you might need to add 'runtimepath' option 36 in your .vimrc file. 37 38 -v,--verbose 39 verbose message 40 41 -y,--yes 42 assume yes 43 44 -f,--force 45 force install 46 47 installed - list installed packages. 48 49 remove (r) - remove package 50 51 remove [options] [plugin] 52 53 54 Options: 55 56 -f,--force 57 force remove 58 59 search (s) - search packages 60 61 search [keyword] 62 63 help - show this help 64 65 help [command] 66 help [topic] 67 68Help Topics: 69 70END 71 } 72 73} 74 751; 76