Blame view

mail/help.c 1.11 KB
1
/* GNU Mailutils -- a suite of utilities for electronic mail
2
   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
3

4
   GNU Mailutils is free software; you can redistribute it and/or modify
5 6 7 8
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

9
   GNU Mailutils is distributed in the hope that it will be useful,
10 11 12 13 14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
15
   along with GNU Mailutils; if not, write to the Free Software
Wojciech Polak authored
16
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA  */
17 18 19 20

#include "mail.h"

/*
Jakob Kaivo authored
21 22
 * hel[p] [command]
 * ? [command]
23 24 25 26 27
 */

int
mail_help (int argc, char **argv)
{
Jakob Kaivo authored
28
  if (argc < 2)
29 30
    return util_help (mail_command_table, NULL);
  else
Jakob Kaivo authored
31
    {
32
      int status = 0;
33

34 35
      while (--argc)
	status |= util_help (mail_command_table, *++argv);
36

37
      return status;
Jakob Kaivo authored
38
    }
39 40
  return 1;
}