vlan: Fail when unknown command line parameters are being passed
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2019 10:02:15 +0000 (12:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2019 10:02:15 +0000 (12:02 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/ports/vlan

index 0147e54..39dbfff 100644 (file)
@@ -76,6 +76,10 @@ hook_parse_cmdline() {
                        --tag=*)
                                TAG=$(cli_get_val "${1}")
                                ;;
+                       -*)
+                               error "Unknown argument '${1}'"
+                               return ${EXIT_CONF_ERROR}
+                               ;;
                esac
                shift
        done