CI: Update Upload Artifact Action.
[xz.git] / src / xz / args.h
bloba1f42f8a92ee609259c83f7b681b293230e419dd
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file args.h
4 /// \brief Argument parsing
5 //
6 // Authors: Lasse Collin
7 // Jia Tan
8 //
9 // This file has been put into the public domain.
10 // You can do whatever you want with this file.
12 ///////////////////////////////////////////////////////////////////////////////
14 typedef struct {
15 /// Filenames from command line
16 char **arg_names;
18 /// Number of filenames from command line
19 unsigned int arg_count;
21 /// Name of the file from which to read filenames. This is NULL
22 /// if --files or --files0 was not used.
23 const char *files_name;
25 /// File opened for reading from which filenames are read. This is
26 /// non-NULL only if files_name is non-NULL.
27 FILE *files_file;
29 /// Delimiter for filenames read from files_file
30 char files_delim;
32 } args_info;
35 extern bool opt_stdout;
36 extern bool opt_force;
37 extern bool opt_keep_original;
38 // extern bool opt_recursive;
39 extern bool opt_robot;
40 extern bool opt_ignore_check;
42 extern const char stdin_filename[];
44 extern void args_parse(args_info *args, int argc, char **argv);
45 extern void args_free(void);