Skip to content

Commit

Permalink
Update version in SHFB project.
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenGroot committed Dec 8, 2023
1 parent c9ce65c commit 65f21d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/Ookii.CommandLine.shfbproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
</NamespaceSummaries>
<CopyrightHref>https://github.com/SvenGroot/Ookii.CommandLine</CopyrightHref>
<CopyrightText>Copyright &amp;#169%3b Sven Groot %28Ookii.org%29</CopyrightText>
<HelpTitle>Ookii.CommandLine 4.0 documentation</HelpTitle>
<HelpTitle>Ookii.CommandLine 4.1 documentation</HelpTitle>
<NamingMethod>MemberName</NamingMethod>
<PresentationStyle>Default2022</PresentationStyle>
<SyntaxFilters>C#, Visual Basic, Visual Basic Usage, Managed C++</SyntaxFilters>
<SdkLinkTarget>Blank</SdkLinkTarget>
<RootNamespaceContainer>True</RootNamespaceContainer>
<Preliminary>False</Preliminary>
<Preliminary>True</Preliminary>
<ContentPlacement>AboveNamespaces</ContentPlacement>
<CleanIntermediates>True</CleanIntermediates>
<KeepLogFile>True</KeepLogFile>
Expand Down
12 changes: 12 additions & 0 deletions src/Ookii.CommandLine/LocalizedStringProvider.Usage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,16 @@ public virtual string UsageDefaultValue(object defaultValue, IFormatProvider for
/// <returns>The string.</returns>
public virtual string UsageMoreInfoMessage(string executableName, string helpArgumentName)
=> Format(Resources.MoreInfoOnErrorFormat, executableName, helpArgumentName);

/// <summary>
/// Gets an instruction on how to get help on a command, used by the <see cref="UsageWriter"/>
/// class.
/// </summary>
/// <param name="name">The application and command name.</param>
/// <param name="argumentNamePrefix">The argument name prefix for the help argument.</param>
/// <param name="argumentName">The help argument name.</param>
/// <returns>The string.</returns>
public virtual string UsageCommandHelpInstruction(string name, string argumentNamePrefix, string argumentName)
=> Format(Resources.CommandHelpInstructionFormat, name, argumentNamePrefix, argumentName);

}
10 changes: 0 additions & 10 deletions src/Ookii.CommandLine/LocalizedStringProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ public virtual string ApplicationNameAndVersion(Assembly assembly, string friend
public virtual string? ApplicationCopyright(Assembly assembly)
=> assembly.GetCustomAttribute<AssemblyCopyrightAttribute>()?.Copyright;

/// <summary>
/// Gets an instruction on how to get help on a command, used by the <see cref="UsageWriter"/>
/// class.
/// </summary>
/// <param name="name">The application and command name.</param>
/// <param name="argumentNamePrefix">The argument name prefix for the help argument.</param>
/// <param name="argumentName">The help argument name.</param>
public virtual string UsageCommandHelpInstruction(string name, string argumentNamePrefix, string argumentName)
=> Format(Resources.CommandHelpInstructionFormat, name, argumentNamePrefix, argumentName);

private static string Format(string format, object? arg0)
=> string.Format(CultureInfo.CurrentCulture, format, arg0);

Expand Down

0 comments on commit 65f21d3

Please sign in to comment.