private static string? FindHelpFile()

in src/common/details/commands/parsers/help_command_parser.cs [410:426]


        private static string? FindHelpFile(string command, string option, string more)
        {
            var hasCommand = !string.IsNullOrEmpty(command);
            var hasOption = !string.IsNullOrEmpty(option);
            var hasMore = !string.IsNullOrEmpty(more);

            string? path = hasCommand && hasOption && hasMore
                ? FileHelpers.FindFileInHelpPath($"help/{command}.{option}.{more}")
                : null;
            if (path == null && hasCommand && hasMore) path = FileHelpers.FindFileInHelpPath($"help/{command}.{more}");
            if (path == null && hasOption && hasMore) path = FileHelpers.FindFileInHelpPath($"help/{option}.{more}");
            if (path == null && hasOption) path = FileHelpers.FindFileInHelpPath($"help/{option}");
            if (path == null && hasMore) path = FileHelpers.FindFileInHelpPath($"help/{more}");
            if (path == null && hasCommand) path = FileHelpers.FindFileInHelpPath($"help/{command}");

            return path;
        }