We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d042ac commit 8e29923Copy full SHA for 8e29923
src/Tools/dotnet-watch/src/Program.cs
@@ -4,6 +4,7 @@
4
using System;
5
using System.Collections.Generic;
6
using System.IO;
7
+using System.Linq;
8
using System.Threading;
9
using System.Threading.Tasks;
10
using Microsoft.DotNet.Watcher.Internal;
@@ -38,6 +39,11 @@ public static async Task<int> Main(string[] args)
38
39
DebugHelper.HandleDebugSwitch(ref args);
40
using (var program = new Program(PhysicalConsole.Singleton, Directory.GetCurrentDirectory()))
41
{
42
+ //if no command argument provided, we fall back to dotnet watch run
43
+ if (args.Length == 0)
44
+ {
45
+ args = new[] { "run" };
46
+ }
47
return await program.RunAsync(args);
48
}
49
0 commit comments