00001 /* 00002 * Copyright 2017 Otavio Piske <angusyoung@gmail.com>. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include <stdio.h> 00017 00018 #include "common/gru_colors.h" 00019 #include "common/gru_portable.h" 00020 00021 #ifndef GRU_CLI_OPT_H 00022 #define GRU_CLI_OPT_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00034 gru_export void gru_cli_option_help( 00035 const char *long_opt, const char *short_opt, const char *desc); 00036 00042 gru_export void gru_cli_program_usage(const char *appname, const char *program_name); 00043 00049 gru_export void gru_cli_program_description(const char *program, const char *description); 00050 00055 gru_export void gru_cli_general_usage(const char *appname); 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* GRU_CLI_OPT_H */