1 /*-------------------------------------------------------------------------
3 * Command line option processing facilities for frontend code
5 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * src/include/fe_utils/option_utils.h
10 *-------------------------------------------------------------------------
12 #ifndef OPTION_UTILS_H
13 #define OPTION_UTILS_H
15 #include "postgres_fe.h"
17 #include "common/file_utils.h"
19 typedef void (*help_handler
) (const char *progname
);
21 extern void handle_help_version_opts(int argc
, char *argv
[],
22 const char *fixed_progname
,
24 extern bool option_parse_int(const char *optarg
, const char *optname
,
25 int min_range
, int max_range
,
27 extern bool parse_sync_method(const char *optarg
,
28 DataDirSyncMethod
*sync_method
);
30 #endif /* OPTION_UTILS_H */