If a too small number of arguments is passed, we will
show a help page to create a new zone.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
case "${action}" in
new)
- zone_new $@
+ cli_zone_new $@
;;
destroy)
cli_zone_destroy $@
fi
}
+cli_zone_new() {
+ if cli_help_requested $@ || [ $# -lt 2 ]; then
+ cli_show_man network-zone-new
+ exit ${EXIT_OK}
+ fi
+
+ zone_new $@
+}
+
# Removes a zone either immediately, if it is currently down,
# or adds a tag that the removal will be done when the zone
# is brought down the next time.