Ignore:
Timestamp:
2/12/2010 1:16:30 AM (5 years ago)
Author:
lowjoel
Message:

We only accept / instead of -- now for command line arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/Program.cs

    r1802 r1817  
    188188 
    189189global parameters: 
    190   --quiet, -q         Do not create a Console window to display progress. 
     190  /quiet              Do not create a Console window to display progress. 
    191191 
    192192parameters for help: 
     
    196196 
    197197parameters for addtask: 
    198   eraser addtask [--method=<methodGUID>] [--schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...] 
    199  
    200   --method            The Erasure method to use. 
    201   --schedule          The schedule the task will follow. The value must be one 
     198  eraser addtask [/method=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...] 
     199 
     200  /method             The Erasure method to use. 
     201  /schedule           The schedule the task will follow. The value must be one 
    202202                      of: 
    203203      now             The task will be queued for immediate execution. 
     
    297297                default: 
    298298                    throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 
    299                         "Unknown schedule type: {0}", arguments.Schedule), "--schedule"); 
     299                        "Unknown schedule type: {0}", arguments.Schedule), "/schedule"); 
    300300            } 
    301301 
     
    395395                        //that the server process isn't running. Start an instance. 
    396396                        Process eraserInstance = Process.Start( 
    397                             Assembly.GetExecutingAssembly().Location, "--quiet"); 
     397                            Assembly.GetExecutingAssembly().Location, "/quiet"); 
    398398                        Thread.Sleep(0); 
    399399                        eraserInstance.WaitForInputIdle(); 
     
    438438                        //that the server process isn't running. Start an instance. 
    439439                        Process eraserInstance = Process.Start( 
    440                             Assembly.GetExecutingAssembly().Location, "--quiet"); 
     440                            Assembly.GetExecutingAssembly().Location, "/quiet"); 
    441441                        eraserInstance.WaitForInputIdle(); 
    442442 
Note: See TracChangeset for help on using the changeset viewer.