From: Jérémie Astor Date: Fri, 26 Mar 2021 19:02:04 +0000 (+0100) Subject: :art: Update TUI X-Git-Tag: nightly~813 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=192c364a5f0364b63e6786eb2fd6191c5088e130;p=gwion.git :art: Update TUI --- 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; }