aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/argparser.c55
-rw-r--r--src/argparser.h57
2 files changed, 57 insertions, 55 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 7df379f..313c267 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -42,66 +42,11 @@ static long cmp(char* a, char* b);
static long args_linuxvt;
/**
- * The name of the executed command
- */
-char* args_program;
-
-/**
* Whether to free the member of `args_program`
*/
static long args_program_dispose;
/**
- * Short, single-line, description of the program
- */
-char* args_description;
-
-/**
- * Formated, multi-line, usage text, `null` if none
- */
-char* args_usage;
-
-/**
- * Long, multi-line, description of the program, `null` if none
- */
-char* args_longdescription;
-
-/**
- * The error output stream
- */
-FILE* args_out;
-
-/**
- * The passed arguments
- */
-char** args_arguments;
-
-/**
- * The number of passed arguments
- */
-long args_arguments_count;
-
-/**
- * The number of unrecognised arguments
- */
-long args_unrecognised_count;
-
-/**
- * The concatination of `files` with blankspaces as delimiters, `null` if no files
- */
-char* args_message;
-
-/**
- * The arguments passed that is not tied to an option
- */
-char** args_files;
-
-/**
- * The number of elements in `args_files`
- */
-long args_files_count;
-
-/**
* Queue of objects that needs to be freed on dispose
*/
static void** args_freequeue;
diff --git a/src/argparser.h b/src/argparser.h
index 19629ce..6862f2c 100644
--- a/src/argparser.h
+++ b/src/argparser.h
@@ -100,3 +100,60 @@ typedef struct
} args_Array;
+
+/**
+ * The name of the executed command
+ */
+char* args_program;
+
+/**
+ * Short, single-line, description of the program
+ */
+char* args_description;
+
+/**
+ * Formated, multi-line, usage text, `null` if none
+ */
+char* args_usage;
+
+/**
+ * Long, multi-line, description of the program, `null` if none
+ */
+char* args_longdescription;
+
+/**
+ * The error output stream
+ */
+FILE* args_out;
+
+/**
+ * The passed arguments
+ */
+char** args_arguments;
+
+/**
+ * The number of passed arguments
+ */
+long args_arguments_count;
+
+/**
+ * The number of unrecognised arguments
+ */
+long args_unrecognised_count;
+
+/**
+ * The concatination of `files` with blankspaces as delimiters, `null` if no files
+ */
+char* args_message;
+
+/**
+ * The arguments passed that is not tied to an option
+ */
+char** args_files;
+
+/**
+ * The number of elements in `args_files`
+ */
+long args_files_count;
+
+