Commit d3fe9591 authored by Niklas Cassel's avatar Niklas Cassel Committed by Tomasz Zawadzki
Browse files

examples/nvme/identify: exit after showing help text



Exit after showing the help text.

If the user specifies -H, it is confusing that
the regular execution of the program continues,
which might mislead the user to think that the
option they specified is not taking effect.

Signed-off-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
Change-Id: I52d8e0f6c720c7ce1d66bddb99181babb12cef1f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5895


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 76c21d41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2001,7 +2001,7 @@ parse_args(int argc, char **argv)
			break;
		case 'H':
			usage(argv[0]);
			break;
			exit(EXIT_SUCCESS);
		case 'V':
			g_vmd = true;
			break;