Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Jun 25, 2017
1 parent db3a7b9 commit a2ca264
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RechatTool/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ public static string NullIfEmpty(this string s) {
public static long? TryParseInt64(this string s) {
return Int64.TryParse(s, out long n) ? n : (long?)null;
}

public static string ToDisplayString(this Version v) {
return $"{v.Major}.{v.Minor}.{v.Revision}";
}
}
}
4 changes: 4 additions & 0 deletions RechatTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace RechatTool {
internal class Program {
public const string Version = "1.1.0.0";

private static int Main(string[] args) {
int iArg = 0;
string GetArg(bool optional = false) =>
Expand Down Expand Up @@ -50,6 +52,8 @@ void UpdateProgress(int downloaded, int total) {
return 0;
}
catch (InvalidArgumentException) {
Console.WriteLine($"RechatTool v{new Version(Version).ToDisplayString()}");
Console.WriteLine();
Console.WriteLine("Modes:");
Console.WriteLine(" -d videoid [path]");
Console.WriteLine(" Downloads chat replay for the specified videoid. If path is not");
Expand Down
5 changes: 3 additions & 2 deletions RechatTool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Reflection;
using System.Runtime.InteropServices;
using RechatTool;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand Down Expand Up @@ -31,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(Program.Version)]
[assembly: AssemblyFileVersion(Program.Version)]

0 comments on commit a2ca264

Please sign in to comment.