On 2/6/2011 9:38 AM, Peter Huewe wrote:
> This patch converts the commandline parsing to use getopt_long.
> Although powertop has only a few commandline options, this conversion
> makes it easier to add new options, and is possibly less error prone.
>
> To demonstrate how easy it is to add new options, the patch also
> introduces --help and --version command line options.
>
> Code is taken from The GNU C Library reference manual, section 25.2.
> http://www.gnu.org/s/libc/manual/html_node/Getopt-Long-Option-Example.html

I like your patch and approach, however I'd like this sentence (of the 
origin of the code)
to be a comment in the code as well, so that we give credit where credit 
is due, as well as leaving
no confusion to anyone where things come from..

could you do the minor edit to make this happen ?

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to