From 0b0cf0c4e3b77527442e4e3a8c5f88971a1e724e Mon Sep 17 00:00:00 2001 From: PrajwalCH Date: Tue, 20 Jun 2023 19:16:04 +0545 Subject: [PATCH] refactor(App): Format code Signed-off-by: PrajwalCH --- src/App.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.zig b/src/App.zig index 5fdbfaf..2e820d7 100644 --- a/src/App.zig +++ b/src/App.zig @@ -187,10 +187,12 @@ pub fn displaySubcommandHelp(self: *App) !void { } fn handleHelpOption(self: *App) !void { - // Set the `Help` of a subcommand present on the command line with the `-h` or `--help` option - // remains null if none of the subcommands were present if (help.findSubcommand(self.rootCommand(), &self.arg_matches.?)) |subcmd| { - self.subcommand_help = try help.Help.init(self.allocator, self.rootCommand(), subcmd); + self.subcommand_help = try help.Help.init( + self.allocator, + self.rootCommand(), + subcmd, + ); } try self.displayHelpAndExitIfFound(); }