25 lines
532 B
C
25 lines
532 B
C
/* --------------------------------------------------------
|
|
* -- 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
|