summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-01 17:08:07 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-01 17:08:07 +0000
commit14c94292388f2d1d61165e6fe999a7e508859e5a (patch)
treead00f5217bf0659784ffd28fdfde81212dfca086 /urpm/args.pm
parentaec086fafb83acedeff96b72403a82e1dccd6588 (diff)
downloadurpmi-14c94292388f2d1d61165e6fe999a7e508859e5a.tar
urpmi-14c94292388f2d1d61165e6fe999a7e508859e5a.tar.gz
urpmi-14c94292388f2d1d61165e6fe999a7e508859e5a.tar.bz2
urpmi-14c94292388f2d1d61165e6fe999a7e508859e5a.tar.xz
urpmi-14c94292388f2d1d61165e6fe999a7e508859e5a.zip
(copyright) factorize a translated string
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm12
1 files changed, 12 insertions, 0 deletions
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__