|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-1993, 1997, 2002-2008, 2012 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_HELP_H 00021 #define LIBAEGIS_HELP_H 00022 00023 #include <common/gcc-attribute.h> 00024 00025 struct string_ty; // forward 00026 class nstring; // forward 00027 00028 void help(const char *progname, void (*usagefunc)(void)); 00029 void generic_argument(void(*usagefunc)(void)); 00030 void bad_argument(void(*usagefunc)(void)) NORETURN; 00031 void mutually_exclusive_options(int name1, int name2, void(*usagefunc)(void)); 00032 void mutually_exclusive_options3(int name1, int name2, int name3, 00033 void (*usagefunc)(void)); 00034 void duplicate_option(void(*usagefunc)(void)); 00035 void duplicate_option_by_name(int name, void(*usagefunc)(void)); 00036 void option_needs_number(int name, void(*usagefunc)(void)); 00037 void option_needs_string(int name, void(*usagefunc)(void)); 00038 void option_needs_name(int name, void(*usagefunc)(void)); 00039 void option_needs_file(int name, void(*usagefunc)(void)); 00040 void option_needs_dir(int name, void(*usagefunc)(void)); 00041 void option_needs_files(int name, void(*usagefunc)(void)); 00042 00053 void option_needs_url(int name, void (*usagefunc)(void)); 00054 00055 void option_needs_uuid(int name, void(*usagefunc)(void)); 00056 00057 void fatal_too_many_files(void) NORETURN; 00058 00059 void fatal_user_too_privileged(string_ty *name) NORETURN DEPRECATED; 00060 void fatal_user_too_privileged(const nstring &name) NORETURN; 00061 00062 void fatal_group_too_privileged(string_ty *name) NORETURN DEPRECATED; 00063 void fatal_group_too_privileged(const nstring &name) NORETURN; 00064 00065 void fatal_bad_project_name(string_ty *) NORETURN; 00066 void fatal_project_name_too_long(string_ty *, int) NORETURN; 00067 void fatal_date_unknown(const char *) NORETURN; 00068 void fatal_project_alias_exists(string_ty *) NORETURN; 00069 00070 #endif // LIBAEGIS_HELP_H 00071 // vim: set ts=8 sw=4 et :
1.7.6.1