diff options
Diffstat (limited to '')
-rw-r--r-- | src/m_argv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/m_argv.c b/src/m_argv.c index 25b386e..46e2640 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -18,6 +18,7 @@ #include "f_fail.h" #include "d_define.h" #include "m_comm.h" +#include "m_init.h" #include "m_loop.h" #include "m_mshrc.h" #include "s_struct.h" @@ -31,6 +32,7 @@ uint8_t if (argc == 1) { + m_init_custom_vars(msh); msh->ret = m_source_mshrc(msh); msh->ret = m_loop(STDIN_FILENO, msh); } @@ -38,7 +40,7 @@ uint8_t { if (*(argv + 2) == NULL) { - ft_dprintf(2, "%s: %s: option requires an argument\n", + ft_dprintf(STDERR_FILENO, "%s: %s: option requires an argument\n", msh->shname, FT_OPT_COMMAND); return (2); } |