From 14c94292388f2d1d61165e6fe999a7e508859e5a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 1 Sep 2012 17:08:07 +0000 Subject: (copyright) factorize a translated string --- urpm/args.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'urpm') diff --git a/urpm/args.pm b/urpm/args.pm index 5bca88d0..eade3974 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -518,6 +518,18 @@ sub parse_cmdline { $ret; } +sub copyright { + my ($prog_name, @copyrights) = @_; + N("%s version %s +%s +This is free software and may be redistributed under the terms of the GNU GPL. + +usage: +", $prog_name, $urpm::VERSION, + join("\n", map { N("Copyright (C) %s by %s", @$_) } @copyrights) + ); +} + 1; __END__ -- cgit v1.2.1