vlan: Fail when unknown command line parameters are being passed
[people/ms/network.git] / 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