Prompt for input when none is given.
This commit is contained in:
parent
e40522aa93
commit
8112f6df52
2 changed files with 8 additions and 2 deletions
BIN
Build/Build.exe
BIN
Build/Build.exe
Binary file not shown.
|
@ -61,7 +61,7 @@ namespace OpenTK.Build
|
|||
|
||||
static void PrintUsage()
|
||||
{
|
||||
Console.WriteLine("Usage: Build.exe BuildMode BuildTarget");
|
||||
Console.WriteLine("Usage: Build.exe BuildTarget [BuildMode]");
|
||||
Console.WriteLine("\tBuildMode: debug/release");
|
||||
Console.WriteLine("\tBuildTarget: mono/net/monodev/sharpdev/vs2005 or clean/distclean/svnclean");
|
||||
}
|
||||
|
@ -71,7 +71,13 @@ namespace OpenTK.Build
|
|||
if (args.Length == 0)
|
||||
{
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue