Skip to content

Commit

Permalink
(GH-1326) Always show heading
Browse files Browse the repository at this point in the history
When the released version is four digits long, you don't see the heading.
This is due to a change for 0.9.9.9 (59dba8c) that removed the heading.
However, when 0.9.10 came out over a year ago, the heading started showing
up again. When a version came out with a patch recently that was four digits
long, the heading disappeared again. Show the heading always unless limiting
output.
  • Loading branch information
ferventcoder committed Jun 6, 2017
1 parent 862eecb commit b563757
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/chocolatey.console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,7 @@ private static void Main(string[] args)
#if DEBUG
"chocolatey".Log().Info(ChocolateyLoggers.Important, () => "{0} v{1}{2} (DEBUG BUILD)".format_with(ApplicationParameters.Name, config.Information.ChocolateyProductVersion, license.is_licensed_version() ? " {0}".format_with(license.LicenseType) : string.Empty));
#else
if (config.Information.ChocolateyVersion == config.Information.ChocolateyProductVersion && args.Any())
{
"LogFileOnly".Log().Info(() => "{0} v{1}{2}".format_with(ApplicationParameters.Name, config.Information.ChocolateyProductVersion, license.is_licensed_version() ? " {0}".format_with(license.LicenseType) : string.Empty));
}
else
{
"chocolatey".Log().Info(ChocolateyLoggers.Important, () => "{0} v{1}{2}".format_with(ApplicationParameters.Name, config.Information.ChocolateyProductVersion, license.is_licensed_version() ? " {0}".format_with(license.LicenseType) : string.Empty));
}
"chocolatey".Log().Info(ChocolateyLoggers.Important, () => "{0} v{1}{2}".format_with(ApplicationParameters.Name, config.Information.ChocolateyProductVersion, license.is_licensed_version() ? " {0}".format_with(license.LicenseType) : string.Empty));
#endif
if (args.Length == 0)
{
Expand Down

0 comments on commit b563757

Please sign in to comment.