|
| static bfc_error_t | bfc_set_help (bfc_args_t *args, const char *value) |
| | Sets the help-request flag.
|
| static bfc_error_t | bfc_set_assemble (bfc_args_t *args, const char *value) |
| | Enables assembly-only output.
|
| static bfc_error_t | bfc_set_no_comments (bfc_args_t *args, const char *value) |
| | Disables the semicolon-comment extension.
|
| static bfc_error_t | bfc_set_output (bfc_args_t *args, const char *value) |
| | Stores the borrowed output-path argument after duplicate detection.
|
| static bfc_error_t | bfc_set_target (bfc_args_t *args, const char *value) |
| | Stores the borrowed target-triple argument after duplicate detection.
|
| static bfc_error_t | bfc_set_version (bfc_args_t *args, const char *value) |
| | Sets the version-print flag.
|
| static const bfc_option_t * | bfc_find_option (const char *argument) |
| | Finds option metadata by exact short or long spelling.
|
| void | bfc_cmd_help (void) |
| | Renders usage text from the same option table used for parsing.
|
| bfc_error_t | bfc_process_args (bfc_args_t *cmd_args, int argc, char *const argv[]) |
| | Parses options, option values, the end-of-options marker, and one input path.
|
Table-driven command-line parser.
Defines option metadata, handlers, help rendering, positional-input rules, and the end-of-options marker.
Parses options, option values, the end-of-options marker, and one input path.
Parses compiler command-line arguments.
Parses options, option values, the end-of-options marker, and one input path.
- Parameters
-
| [out] | cmd_args | Receives zero-initialized parsed arguments. |
| [in] | argc | Argument count. |
| [in] | argv | Argument vector. |
- Returns
- BFC_ERR_OK on success; otherwise an argument error.