Prompt for input when none is given.

This commit is contained in:
the_fiddler 2009-02-28 22:01:39 +00:00
parent 59256f6f0b
commit 66fd1f0915
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View file

@ -61,7 +61,7 @@ namespace OpenTK.Build
static void PrintUsage() static void PrintUsage()
{ {
Console.WriteLine("Usage: Build.exe BuildMode BuildTarget"); Console.WriteLine("Usage: Build.exe BuildTarget [BuildMode]");
Console.WriteLine("\tBuildMode: debug/release"); Console.WriteLine("\tBuildMode: debug/release");
Console.WriteLine("\tBuildTarget: mono/net/monodev/sharpdev/vs2005 or clean/distclean/svnclean"); Console.WriteLine("\tBuildTarget: mono/net/monodev/sharpdev/vs2005 or clean/distclean/svnclean");
} }
@ -71,7 +71,13 @@ namespace OpenTK.Build
if (args.Length == 0) if (args.Length == 0)
{ {
PrintUsage(); PrintUsage();
return;
args = new string[2];
Console.Write("Select build target: ");
args[0] = Console.ReadLine();
Console.Write("Select build mode (optional): ");
args[1] = Console.ReadLine();
} }
RootPath = Directory.GetCurrentDirectory(); RootPath = Directory.GetCurrentDirectory();