[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] Version 1.15-rc1 of GNU ddrescue released

From: Tom Williams
Subject: Re: [Bug-ddrescue] Version 1.15-rc1 of GNU ddrescue released
Date: Wed, 07 Dec 2011 14:24:39 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

On 12/06/2011 09:56 AM, Tom Williams wrote:
> I have worked up a small patch to add the ddrescue version number to the
> "show help" (-h) output.  This way, when someone runs "ddrescue -h", the
> version of ddrescue being run is included in the output.  :)
> Here is the patch:
> -------------------- START ----------------------------
> address@hidden:~/build/ddrescue-1.15-rc1$ diff -up main-orig.cc main.cc
> --- main-orig.cc        2011-12-06 09:45:04.000000000 -0800
> +++ main.cc     2011-12-06 09:47:48.000000000 -0800
> @@ -60,7 +60,7 @@ const int o_binary = 0;
>  void show_help( const int cluster, const int hardbs ) throw()
>    {
> -  std::printf( "%s - Data recovery tool.\n", Program_name );
> +  std::printf( "%s %s - Data recovery tool.\n", Program_name,
>    std::printf( "Copies data from one file or block device to another,\n"
>                 "trying hard to rescue data in case of read errors.\n"
>                 "\nUsage: %s [options] infile outfile [logfile]\n",
> invocation_name );
> [1]+  Done                    gedit arg_parser.cc
> address@hidden:~/build/ddrescue-1.15-rc1$
> ---------------------- END -----------------------------
> Peace...
> Tom
Any reason you can't run "ddrescue -V"?

The change you propose would include ddrescue's version number in the
description of the help2man-generated man page, and I am not sure I like

Best regards,


Sorry for responding like this but for some reason, I didn't get your
message above.

I certainly can run "ddrescue -V" but when I run ddrescue, I usually use
the "-h" option to get the parameter descriptions, and then I run the
"ddrescue" command I want to run.  If I have a question while ddrescue
is running, I would have to stop ddrescue, issue the "ddrescue  -V"
command, and then resume ddrescue.  I don't always run ddrescue with a
log (like if I'm running it while booted from a live CD of some kind,
like Trinity) and  having the version information in the "help" output
makes the "help" output more complete.

This isn't a major issue.  :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]