From 192c364a5f0364b63e6786eb2fd6191c5088e130 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 26 Mar 2021 20:02:04 +0100 Subject: [PATCH] :art: Update TUI --- src/arg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arg.c b/src/arg.c index 91820ef0..d1f88402 100644 --- a/src/arg.c +++ b/src/arg.c @@ -55,7 +55,6 @@ ANN static void arg_init(Arg* arg) { vector_init(&arg->add); vector_init(&arg->lib); vector_init(&arg->config); - vector_add(&arg->lib, (vtype)plug_dir()); arg->color = COLOR_AUTO; } @@ -347,5 +346,9 @@ ANN m_bool arg_parse(const Gwion gwion, Arg* a) { return; #endif config_default(&arg); - return _arg_parse(&arg); + if(_arg_parse(&arg) > 0) { + vector_add(&a->lib, (vtype)plug_dir()); + return GW_OK; + } + return GW_ERROR; } -- 2.43.0