// // aegis - project change supervisor // Copyright (C) 2005-2008, 2010, 2012 Peter Miller // // 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 3 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, see . // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include enum { arglex_token_usage = ARGLEX2_MAX, arglex_token_usage_not, arglex_token_action, arglex_token_action_not, arglex_token_quote_c, arglex_token_quote_cook, arglex_token_quote_shell, ARGLEX3_MAX }; static arglex_table_ty argtab[] = { { "-ACtion", arglex_token_action, }, { "-Not_ACtion", arglex_token_action_not, }, { "-USAge", arglex_token_usage, }, { "-Not_USAge", arglex_token_usage_not, }, { "-Quote_C", arglex_token_quote_c, }, { "-Quote_COok", arglex_token_quote_cook, }, { "-Quote_Shell", arglex_token_quote_shell, }, ARGLEX_END_MARKER }; static void list_usage(void) { const char *progname = progname_get(); fprintf(stderr, "usage: %s [