Changeset 2232 for trunk/eraser/Eraser/Program.cs
- Timestamp:
- 8/4/2010 9:23:35 AM (22 months ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser/Program.cs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser/Program.cs
r2227 r2232 40 40 using Eraser.Util; 41 41 using Eraser.DefaultPlugins; 42 using System.Text; 42 43 43 44 namespace Eraser … … 291 292 private static void PrintCommandHelp() 292 293 { 294 //Get the command-line help for every erasure target 295 StringBuilder targets = new StringBuilder(); 296 foreach (ErasureTarget target in ManagerLibrary.Instance.ErasureTargetRegistrar) 297 { 298 //Replace all \r\n with \n, and split into lines 299 string[] helpText = target.Configurer.Help().Replace("\r\n", "\n").Split('\r', '\n'); 300 301 //Pad the start of each line with spaces 302 foreach (string line in helpText) 303 targets.AppendLine(line.Insert(0, " ")); 304 } 305 306 //Print the message 293 307 Console.WriteLine(S._(@"usage: Eraser <action> <arguments> 294 308 where action is … … 308 322 309 323 parameters for addtask: 310 eraser addtask [/method=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]324 eraser addtask [/method=<methodGUID>] [/schedule=(now|manually|restart)] <target> [target [...]] 311 325 312 326 /method The Erasure method to use. … … 317 331 restart The task will be queued for execution when the computer 318 332 is next restarted. 319 recyclebin Erases files and folders in the recycle bin 320 unused Erases unused space in the volume. 321 optional arguments: unused=<drive>[,clusterTips[=(true|false)]] 322 clusterTips If specified, the drive's files will have their 323 cluster tips erased. This parameter accepts a Boolean 324 value (true/false) as an argument; if none is specified 325 true is assumed. 326 dir Erases files and folders in the directory 327 optional arguments: dir=<directory>[,-excludeMask][,+includeMask][,deleteIfEmpty] 328 excludeMask A wildcard expression for files and folders to 329 exclude. 330 includeMask A wildcard expression for files and folders to 331 include. 332 The include mask is applied before the exclude mask. 333 deleteIfEmpty Deletes the folder at the end of the erasure if it is 334 empty. 335 file Erases the specified file 333 334 where target is: 335 {0} 336 336 337 337 parameters for querymethods: … … 351 351 ""@"" to the path to the file, and passing it into the command line. The 352 352 contents of the response files' will be substituted at the same position into 353 the command line.")); 353 the command line.", targets)); 354 354 355 Console.Out.Flush(); 355 356 }
Note: See TracChangeset
for help on using the changeset viewer.
