On 12/09/13 at 19:08 +0200, Christophe Siraut wrote:
> Now with better help message.
> 
> Regards,
> Christophe

Hi Christophe,

Sorry for the late answer, and thanks for your patch.

> --- /usr/bin/how-can-i-help   2013-09-12 09:11:18.000000000 +0200
> +++ how-can-i-help    2013-09-12 16:55:24.602299535 +0200
> @@ -33,6 +33,7 @@
>  $quiet = false
>  $all = false
>  $root = (Process.euid == 0)
> +$additionals = nil
>  
>  optparse = OptionParser.new do |opts|
>    opts.on('-h', '--help', 'show help') do
> @@ -48,6 +49,10 @@
>      $quiet = true
>    end
>  
> +  opts.on('-p',  '--packages somepackage,anotherone,yetanother', Array, 
> 'provide a list of additional packages to care about') do |ap|
> +    $additionals = ap
> +  end

The use case I have in mind here is:
  I have two machines: a laptop, and a server. I don't run apt very often
  on the server, but I still care about the packages installed there. So,
  I'd like to monitor those packages using how-can-i-help on my laptop.
It would be more convenient if the list of packages was provided as a
file (.config/how-can-i-help/packages by default, maybe?).
Or to have two options: one for the file, the other one for providing
the list of packages on the command line.
  
> +if $additionals
> +  $additionals.each do |p|
> +    packages << p.lstrip
> +  end
> +end

if $additionals
  packages += $additionals.map { |e| e.lstrip }
end

would sound more ruby-ish ;)

Lucas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to