mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
pass the command name to the subclass
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# $OpenBSD: pkg_check-problems,v 1.12 2020/07/04 18:29:21 espie Exp $
|
||||
# $OpenBSD: pkg_check-problems,v 1.13 2023/05/14 09:15:01 espie Exp $
|
||||
# Copyright (c) 2004, 2010 Marc Espie <espie@openbsd.org>
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
@@ -224,7 +224,7 @@ sub handle_options
|
||||
sub new
|
||||
{
|
||||
my ($class) = @_;
|
||||
my $o = $class->SUPER::new;
|
||||
my $o = $class->SUPER::new('pkg_check-problem');
|
||||
|
||||
if ($o->ui->opt('D') && $o->ui->opt('C')) {
|
||||
$o->ui->usage("Won't compute anything");
|
||||
|
||||
Reference in New Issue
Block a user