diff options
| author | Jan Sucan <jan@jansucan.com> | 2021-05-30 12:02:35 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2021-05-30 12:02:35 +0200 |
| commit | 34fd60da22dae7711eb28f695c6b231a5ec83180 (patch) | |
| tree | 30690676a5dcf79a957a215c238b128241cb4c6f /src/main.c | |
| parent | b2d000e697fc56c8c408432ed74a21f21d3e2423 (diff) | |
Move usage() function to options.c
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -11,19 +11,6 @@ #include "print.h" #include "resources.h" -/* This header file is automatically generated at build time from the Makefile - */ -#include "program_info.h" - -void -usage(int exit_code) -{ - printf("Usage: %s [-s SECTOR_SIZE] [-b BUFFER_SIZE] [INFILE] REFFILE " - "OUTFILE\n", - PROGRAM_NAME_STR); - exit(exit_code); -} - void clean_exit(resources_t *const res, int exit_code) { @@ -358,7 +345,7 @@ main(int argc, char **argv) options_t opts; if (options_parse(argc, argv, &opts) || opts.help) { - usage(1); + options_usage(1); } const bool is_action_backup = (opts.in_file_path != NULL); |
