mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add tests for native command arguments
This commit is contained in:
1 parent
77a4e96795
commit
7816516c24
3 files changed
+87
No files matched your search
@@ -0,0 +1,28 @@
|
||||
//---------------------------------------------------------------------
|
||||
// Author: Keith Hill
|
||||
//
|
||||
// Description: Very simple little console class that you can use to see
|
||||
// how PowerShell is passing parameters to legacy console
|
||||
// apps.
|
||||
//
|
||||
// Creation Date: March 06, 2006
|
||||
//---------------------------------------------------------------------
|
||||
using System;
|
||||
|
||||
namespace Pscx.Applications
|
||||
{
|
||||
class EchoArgs
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
for (int i = 0; i < args.Length; i++)
|
||||
{
|
||||
Console.WriteLine("Arg {0} is <{1}>", i, args[i]);
|
||||
}
|
||||
|
||||
/*Console.WriteLine("\nCommand line:");
|
||||
Console.WriteLine(Environment.CommandLine);*/
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user