/* * aegis - project change supervisor * Copyright (C) 2001 Peter Miller; * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * 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 * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: functions to manipulate mains */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include enum { arglex_token_attr_hide = ARGLEX2_MAX, arglex_token_attr_show, arglex_token_dot_files_hide, arglex_token_dot_files_show, arglex_token_group_hide, arglex_token_group_show, arglex_token_long, arglex_token_mode_hide, arglex_token_mode_show, arglex_token_recursive, arglex_token_size_hide, arglex_token_size_show, arglex_token_user_hide, arglex_token_user_show, arglex_token_when_hide, arglex_token_when_show, ARGLEX3_MAX }; static arglex_table_ty argtab[] = { { "-Hide_Attributes", arglex_token_attr_hide, }, { "-Show_Attributes", arglex_token_attr_show, }, { "-Hide_Dot_Files", arglex_token_dot_files_hide, }, { "-ALL", arglex_token_dot_files_show, }, { "-Show_Dot_Files", arglex_token_dot_files_show, }, { "-Hide_Group", arglex_token_group_hide, }, { "-Show_Group", arglex_token_group_show, }, { "-LOng", arglex_token_long, }, { "-Hide_Mode", arglex_token_mode_hide, }, { "-Show_Mode", arglex_token_mode_show, }, { "-RECursive", arglex_token_recursive, }, { "-Hide_Size", arglex_token_size_hide, }, { "-Show_Size", arglex_token_size_show, }, { "-Hide_User", arglex_token_user_hide, }, { "-Show_User", arglex_token_user_show, }, { "-Hide_When", arglex_token_when_hide, }, { "-Show_When", arglex_token_when_show, }, ARGLEX_END_MARKER }; static void list_usage _((void)); static void list_usage() { char *progname; progname = progname_get(); fprintf(stderr, "usage: %s [