Get rid of getopt, use Optparse

Well, I thought I had done this before. P for portability.
This commit is contained in:
2023-02-02 16:25:20 +00:00
parent 987095fdef
commit 12442c72a7
10 changed files with 216 additions and 73 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
#include <pthread.h>
#include "umka.h"
#include "umkaio.h"
#include "optparse.h"
enum shell_var_type {
SHELL_VAR_SINT,
@@ -44,7 +45,7 @@ struct shell_ctx {
const int *running;
pthread_cond_t cmd_done;
pthread_mutex_t cmd_mutex;
struct optparse opts;
};
struct shell_ctx *