mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Limit help text line length to 80 characters
1. When running nwipe in a 80x24 terminal such as ALT-F2 or shredos the line length needs to limited to 80 characters otherwise the text looks misaligned. 2. Added a line between each option to make it more legible.
This commit is contained in:
@@ -428,35 +428,45 @@ display_help()
|
||||
{
|
||||
printf("Usage: %s [options] [device1] [device2] ...\n", program_name);
|
||||
printf("Options:\n" );
|
||||
puts(" -V, --version Prints the version number");
|
||||
puts(" -h, --help Prints this help");
|
||||
puts(" --autonuke If no devices have been specified on the command line, starts wiping all");
|
||||
puts(" devices immediately. If devices have been specified, starts wiping only");
|
||||
puts(" those specified devices immediately.");
|
||||
puts(" --sync Open devices in sync mode");
|
||||
puts(" --verify=TYPE Whether to perform verification of erasure (default: last)");
|
||||
/* Limit line length to a maximum of 80 characters so it looks good in 80x25 terminals i.e shredos */
|
||||
/* ___12345678901234567890123456789012345678901234567890123456789012345678901234567890< Do not exceed */
|
||||
puts(" -V, --version Prints the version number\n");
|
||||
puts(" -h, --help Prints this help\n");
|
||||
puts(" --autonuke If no devices have been specified on the command line,");
|
||||
puts(" starts wiping all devices immediately. If devices have");
|
||||
puts(" been specified, starts wiping only those specified");
|
||||
puts(" devices immediately.\n");
|
||||
puts(" --sync Open devices in sync mode\n");
|
||||
puts(" --verify=TYPE Whether to perform verification of erasure");
|
||||
puts(" (default: last)");
|
||||
puts(" off - Do not verify");
|
||||
puts(" last - Verify after the last pass");
|
||||
puts(" all - Verify every pass");
|
||||
puts(" -m, --method=METHOD The wiping method (default: dodshort). See man page for more details.");
|
||||
puts(" all - Verify every pass\n");
|
||||
puts(" -m, --method=METHOD The wiping method. See man page for more details.");
|
||||
puts(" (default: dodshort)");
|
||||
puts(" dod522022m / dod - 7 pass DOD 5220.22-M method");
|
||||
puts(" dodshort / dod3pass - 3 pass DOD method");
|
||||
puts(" gutmann - Peter Gutmann's Algorithm");
|
||||
puts(" ops2 - RCMP TSSIT OPS-II");
|
||||
puts(" random / prng / stream - PRNG Stream");
|
||||
puts(" zero / quick - Overwrite with zeros");
|
||||
puts(" -l, --logfile=FILE Filename to log to. Default is STDOUT");
|
||||
puts(" -p, --prng=METHOD PRNG option (mersenne|twister|isaac)" );
|
||||
puts(" -r, --rounds=NUM Number of times to wipe the device using the selected method (default: 1)" );
|
||||
puts(" --noblank Do not blank disk after wipe (default is to complete a final blank pass)" );
|
||||
puts(" --nowait Do not wait for a key before exiting (default is to wait)" );
|
||||
puts(" --nosignals Do not allow signals to interrupt a wipe (default is to allow)" );
|
||||
puts(" --nogui Do not show the GUI interface. Automatically invokes the nowait option" );
|
||||
puts(" Must be used with --autonuke option. Send SIGUSR1 to log current stats");
|
||||
puts(" -e, --exclude=DEVICES Up to ten comma separted devices to be excluded, examples:");
|
||||
puts(" zero / quick - Overwrite with zeros\n");
|
||||
puts(" -l, --logfile=FILE Filename to log to. Default is STDOUT\n");
|
||||
puts(" -p, --prng=METHOD PRNG option (mersenne|twister|isaac)\n");
|
||||
puts(" -r, --rounds=NUM Number of times to wipe the device using the selected");
|
||||
puts(" method (default: 1)\n" );
|
||||
puts(" --noblank Do not blank disk after wipe");
|
||||
puts(" (default is to complete a final blank pass)\n" );
|
||||
puts(" --nowait Do not wait for a key before exiting");
|
||||
puts(" (default is to wait)\n" );
|
||||
puts(" --nosignals Do not allow signals to interrupt a wipe");
|
||||
puts(" (default is to allow)\n" );
|
||||
puts(" --nogui Do not show the GUI interface. Automatically invokes" );
|
||||
puts(" the nowait option. Must be used with the --autonuke");
|
||||
puts(" option. Send SIGUSR1 to log current stats\n");
|
||||
puts(" -e, --exclude=DEVICES Up to ten comma separted devices to be excluded");
|
||||
puts(" --exclude=/dev/sdc");
|
||||
puts(" --exclude=/dev/sdc,/dev/sdd");
|
||||
puts(" --exclude=/dev/sdc,/dev/sdd,/dev/mapper/cryptswap1");
|
||||
puts(" --exclude=/dev/sdc,/dev/sdd,/dev/mapper/cryptswap1\n");
|
||||
puts("");
|
||||
exit( EXIT_SUCCESS );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user