From e3bebeac98126ddde652d31f81d66da6277be12d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 24 Jun 2024 22:13:16 +0200 Subject: [PATCH] helpers2.1: typo in getopts --- helpers/helpers.v2.1.d/getopts | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/helpers.v2.1.d/getopts b/helpers/helpers.v2.1.d/getopts index d8373203d..4df68e7ae 100644 --- a/helpers/helpers.v2.1.d/getopts +++ b/helpers/helpers.v2.1.d/getopts @@ -51,6 +51,7 @@ ynh_handle_getopts_args() { return # Validate that the first char is - because it should be something like --option=value or -o ... elif [[ "${1:0:1}" != "-" ]] + then ynh_die "It looks like you called the helper using positional arguments instead of keyword arguments ?" fi