4 # Benoit Person <benoit.person@ensimag.imag.fr>
5 # Celestin Matte <celestin.matte@ensimag.imag.fr>
6 # License: GPL v2 or later
8 # Set of tools for git repo with a mediawiki remote.
9 # Documentation & bugtracker: https://github.com/moy/Git-Mediawiki/
16 # By default, use UTF-8 to communicate with Git and the user
17 binmode STDERR, ':encoding(UTF-8)';
18 binmode STDOUT, ':encoding(UTF-8)';
24 return print {*STDERR} @_;
34 # Search for sub-command
35 my $cmd = $commands{'help'};
37 if (defined $commands{$ARGV[$_]}) {
38 $cmd = $commands{$ARGV[$_]};
43 GetOptions( %{$cmd->[1]},
44 'help|h' => \&{$cmd->[2]},
45 'verbose|v' => \$verbose);
50 ############################## Help Functions ##################################
53 print {*STDOUT} <<'END';
54 usage: git mw <command> <args>
57 help Display help information about git mw