From b7cbc5c991588be4851d2b49223a676997b8eb3c Mon Sep 17 00:00:00 2001 From: "jun.gu" Date: Tue, 20 Dec 2022 11:00:20 +0800 Subject: [PATCH] utilities: Fix the bug that using help in ovn-ctl When using `ovn-ctl -h or --help` command, the information that missing command name (use --help for help) will be presented in the last line. Refer from ovs-ctl, run exit instruction after diplay usage information. Signed-off-by: Jun Gu --- utilities/ovn-ctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl index 93be9b84b4..5f16bb8403 100755 --- a/utilities/ovn-ctl +++ b/utilities/ovn-ctl @@ -1118,6 +1118,8 @@ Default directories with "configure" option and environment variable override: user binaries: /usr/local/bin (--bindir, OVN_BINDIR) system binaries: /usr/local/sbin (--sbindir, OVN_SBINDIR) EOF + + exit 0 } set_defaults