From a76046ed37004b85cfbe29fa3fa7c9409088d682 Mon Sep 17 00:00:00 2001 From: Extloga <141232749+Extloga@users.noreply.github.com> Date: Fri, 19 Sep 2025 07:19:15 +0200 Subject: [PATCH] Fixes for formatting and consistency in options.c --- src/options.c | 122 +++++++++++++++++++++++++------------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/src/options.c b/src/options.c index 652f6fa..bdb1aa6 100644 --- a/src/options.c +++ b/src/options.c @@ -666,70 +666,70 @@ void display_help() printf( "Options:\n" ); /* 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( " -v, --verbose Prints more messages to the log\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( " --autopoweroff Power off system on completion of wipe delayed for" ); - puts( " for one minute. During this one minute delay you can" ); - puts( " abort the shutdown by typing sudo shutdown -c\n" ); - printf( " --sync=NUM Will perform a sync after NUM writes (default: %d)\n", DEFAULT_SYNC_RATE ); - puts( " 0 - fdatasync after the disk is completely written" ); - puts( " fdatasync errors not detected until completion." ); - puts( " 0 is not recommended as disk errors may cause" ); - puts( " nwipe to appear to hang" ); - puts( " 1 - fdatasync after every write" ); - puts( " Warning: Lower values will reduce wipe speeds." ); - puts( " 1000 - fdatasync after 1000 writes etc.\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( " " ); - puts( " Please mind that HMG IS5 enhanced always verifies the" ); - puts( " last (PRNG) pass regardless of this option.\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( " one - Overwrite with ones (0xFF)" ); - puts( " verify_zero - Verifies disk is zero filled" ); - puts( " verify_one - Verifies disk is 0xFF filled" ); - puts( " is5enh - HMG IS5 enhanced\n" ); - puts( " bruce7 - Schneier Bruce 7-pass mixed pattern\n" ); - puts( " -l, --logfile=FILE Filename to log to. Default is STDOUT\n" ); + puts( " -V, --version Prints the version number\n" ); + puts( " -v, --verbose Prints more messages to the log\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( " --autopoweroff Power off system on completion of wipe delayed for" ); + puts( " for one minute. During this one minute delay you can" ); + puts( " abort the shutdown by typing sudo shutdown -c\n" ); + printf( " --sync=NUM Will perform a sync after NUM writes (default: %d)\n", DEFAULT_SYNC_RATE ); + puts( " 0 - fdatasync after the disk is completely written." ); + puts( " fdatasync errors not detected until completion." ); + puts( " 0 is not recommended as disk errors may cause" ); + puts( " nwipe to appear to hang." ); + puts( " 1 - fdatasync after every write." ); + puts( " Warning: Lower values will reduce wipe speeds." ); + puts( " 1000 - fdatasync after 1000 writes etc.\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( " " ); + puts( " Please mind that HMG IS5 enhanced always verifies the" ); + puts( " last (PRNG) pass regardless of this option.\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 (0x00)" ); + puts( " one - Overwrite with ones (0xFF)" ); + puts( " verify_zero - Verifies disk is zero filled" ); + puts( " verify_one - Verifies disk is 0xFF filled" ); + puts( " is5enh - HMG IS5 enhanced\n" ); + puts( " bruce7 - Schneier Bruce 7-pass mixed pattern\n" ); + puts( " -l, --logfile=FILE Filename to log to. Default is STDOUT\n" ); puts( " -P, --PDFreportpath=PATH Path to write PDF reports to. Default is \".\"" ); puts( " If set to \"noPDF\" no PDF reports are written.\n" ); - puts( " -p, --prng=METHOD PRNG option " + puts( " -p, --prng=METHOD PRNG option " "(mersenne|twister|isaac|isaac64|add_lagg_fibonacci_prng|xoroshiro256_prng)\n" ); - puts( " -q, --quiet Anonymize logs and the GUI by removing unique data, i.e." ); - puts( " serial numbers, LU WWN Device ID, and SMBIOS/DMI data" ); - puts( " XXXXXX = S/N exists, ????? = S/N not obtainable\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( " --nousb Do NOT show or wipe any USB devices whether in GUI" ); - puts( " mode, --nogui or --autonuke modes.\n" ); - puts( " -e, --exclude=DEVICES Up to ten comma separated devices to be excluded" ); - puts( " --exclude=/dev/sdc" ); - puts( " --exclude=/dev/sdc,/dev/sdd" ); - puts( " --exclude=/dev/sdc,/dev/sdd,/dev/mapper/cryptswap1\n" ); + puts( " -q, --quiet Anonymize logs and the GUI by removing unique data, i.e." ); + puts( " serial numbers, LU WWN Device ID, and SMBIOS/DMI data." ); + puts( " XXXXXX = S/N exists, ????? = S/N not obtainable\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( " --nousb Do NOT show or wipe any USB devices whether in GUI" ); + puts( " mode, --nogui or --autonuke modes.\n" ); + puts( " -e, --exclude=DEVICES Up to ten comma separated devices to be excluded." ); + puts( " --exclude=/dev/sdc" ); + puts( " --exclude=/dev/sdc,/dev/sdd" ); + puts( " --exclude=/dev/sdc,/dev/sdd,/dev/mapper/cryptswap1\n" ); puts( "" ); exit( EXIT_SUCCESS ); }