started argument parsing using argp

This commit is contained in:
root committed 2026-06-22 23:16:45 +02:00
1 parent 7b1511e31a
commit 62542734b5
4 files changed
+131 -7

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/* --------------------------------------------------------
* -- project: SCAN
* -- description: handle commandline arguments
* --------------------------------------------------------
*/
#ifndef __ARGUMENTS_H
#define __ARGUMENTS_H
#include <stdbool.h>
#include <argp.h>
typedef struct {
bool show_all;
bool show_almost_all;
bool group_directories;
bool human_readable;
bool long_view;
bool tree_view;
} arguments_t;
error_t parse_args( int argc, char** argv, arguments_t* arguments );
#endif