Skip to content

Commit

Permalink
Proper error message when opening without a passing an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragath committed Apr 8, 2017
1 parent 9d2a4f7 commit 52e4662
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Tyxel/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class Program
{
static void Main(string[] args)
{
if(!args.Any())
{
Console.WriteLine("Please use this program to open a <project>.json file.");
Console.WriteLine("Drag & drop the *.json file onto the .exe is one way of doing so.");
return;
}

var projectPath = args.Single();
var project = JsonConvert.DeserializeObject<ProjectConfig>(File.ReadAllText(projectPath));
project.Root = Path.GetDirectoryName(Path.GetFullPath(projectPath));
Expand Down
4 changes: 2 additions & 2 deletions Tyxel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,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("0.8.0.0")]
[assembly: AssemblyFileVersion("0.8.0.0")]
[assembly: AssemblyVersion("0.8.1.0")]
[assembly: AssemblyFileVersion("0.8.1.0")]

0 comments on commit 52e4662

Please sign in to comment.