From owner-cvs-src@FreeBSD.ORG Thu Jun 5 06:17:32 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C269106566C for ; Thu, 5 Jun 2008 06:17:32 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB568FC22 for ; Thu, 5 Jun 2008 06:17:32 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so279971wah.3 for ; Wed, 04 Jun 2008 23:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=IW6m4f6KtrYzISBm+6j2JEnxw75xEq3bXZQJFIOBj+A=; b=PaFT+Tou5ML3U20Rsuzbd/DEQkbwgKZEtj7SPa0Rkhz5UJ/DqXBQUTtwIUa74JppiR 4IzK44Ja067tVkLhOFyl0oAJQn8eei629SHEPnYRlhvZ0zkPihiwFt5ICWI7G1oxGniX 5nQcWYcmBrTXAy5d7vn4+HPUtbb6clkJoz/SY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=cJsAU4ElekRXleUn1RVXOPjUVoVNIHG6Nw6DAXo8ICEff7ov/uSe3B1XhovBxmZErM kB36QIOOsSCQa9gZjiZGnZiUEC26cTTNB9C88RMrRwIvJrc1ZQzV8uySeFHqf2QG7wey 2RuuojHXWCRy0G6uTObuSKwayHPoZoytcPxug= Received: by 10.114.209.1 with SMTP id h1mr1097488wag.36.1212644976336; Wed, 04 Jun 2008 22:49:36 -0700 (PDT) Received: from ?192.168.10.42? ( [99.133.161.170]) by mx.google.com with ESMTPS id q20sm4402184pog.7.2008.06.04.22.49.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Jun 2008 22:49:34 -0700 (PDT) Message-Id: <103F0EDE-6609-4B57-ABB0-43F4CCDD8A62@gmail.com> From: Garrett Cooper To: Steve Kargl In-Reply-To: <20080604150013.GA44358@troutmask.apl.washington.edu> Content-Type: multipart/mixed; boundary=Apple-Mail-4-262148960 Mime-Version: 1.0 (Apple Message framework v924) Date: Wed, 4 Jun 2008 22:51:06 -0700 References: <200805301426.m4UEQ92d025434@repoman.freebsd.org> <48405C4B.3050603@FreeBSD.org> <1212179252.1967.1.camel@localhost> <20080604041815.GA84027@FreeBSD.org> <20080604043955.GA38627@troutmask.apl.washington.edu> <20080604063631.GA28351@freebie.xs4all.nl> <20080604150013.GA44358@troutmask.apl.washington.edu> X-Mailer: Apple Mail (2.924) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Maxim Sobolev , Alexey Dokuchaev , src-committers@FreeBSD.org, Florent Thoumie , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, Wilko Bulte , Coleman Kane Subject: Re: cvs commit: src/usr.sbin/pkg_install/add main.c pkg_add.1 src/usr.sbin/pkg_install/create main.c pkg_create.1 src/usr.sbin/pkg_install/delete main.c pkg_delete.1 src/usr.sbin/pkg_install/info main.c pkg_info.1 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 06:17:32 -0000 --Apple-Mail-4-262148960 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jun 4, 2008, at 8:00 AM, Steve Kargl wrote: > On Wed, Jun 04, 2008 at 08:36:31AM +0200, Wilko Bulte wrote: >> Quoting Steve Kargl, who wrote on Tue, Jun 03, 2008 at 09:39:55PM >> -0700 .. >>> >>> I personally believe that commit should be backed out and core >>> should establish a policy against adding long options to BSD >> >> Gimme a break.. >> > > Note I wrote "I personally believe". You don't have to agree > with me. I don't see establishing this point as another issue, because many things along these lines are already covered by style(9). I personally believe that the issue with the short options isn't the fact that they're short, but the fact that many of the options tend to vary, between pkg_* applications. Before I ventured off and was working on other projects for school and work I actually wrote down a matrix of all of the given options that were in pkg_* -- as well as options which I thought would be helpful in new commands I was going to add to pkg_*, and I was able to draw more points of consistency between the current pkg_* commands and options. So, while long options may be better in some places, I don't think they will do more other than lengthen manpages and "help messages" -- a GNU~ish behavior that I don't think we will benefit from here because the help message will span more than one terminal screen, unless you pipe the output to less or more. Thus, that's why I vote (for the unfortunate non-POLA change) to make the options consistent amongst all pkg_* apps. I've attached the matrix I made a few months ago, just for reference. Some options may not exist anymore due to the phasing out of options within pkg_add as well as pkg_check/pkg_sign going out the window as well... Thanks, -Garrett --Apple-Mail-4-262148960 Content-Disposition: attachment; filename=pkg_install_flags.htm Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; x-unix-mode="0644"; name="pkg_install_flags.htm" add create delete info version a Delete all packages Show all installed packages A b Use blocksize var B c Fetch packing list (- or file) Do one-liner for each pkg C Chrootdir Set conflicts d Fetch desc (- or file) Prune directories Do long desc for each pkg D Set display file Don't exec deinstall script Display install file for each pkg e E Use extended regex Exact match only f Force install Fetch the packing list Force deinstall Show pkg list instructions for each pkg F Don't report already installed pkgs as errors g Show pkgs w/ non-matching checksums G Match exact pkg name Don't expand glob patterns Don't expand glob patterns h Make tar follow symlinks Print help msg H i Set preinstall script Request for confirmation Show install script for each pkg I Don't exec install scripts Set postinstall script Show index line for each pkg Use INDEX for determining versioning info j Use bzip2 compression Show reqs script J k Set deinstall script Show deinstall script K Keep pkg Set postdeinstall script Keep downloaded pkg l Prefix each header w/ str Positive limit to expression char L Show all files in pkg Negative limit to expression char m Show mtree file M n Don't install pkg Don't deinstall pkg N Default -> no o Set ports origin Show origin path Show origin instead of pkg name O Use packing list mode for creating packing lists from ports Show only pkgs by origin p Prefix to install to Prefix to create from Prefix to delete from Show install prefix P Same as -p, but applies to leaf packages (-r only) Set package dependencies to the list provided Show revision of pkg tools q Be quiet, but print out non-human compat printouts Be quiet Q Do -q, but also prefix with pkg name r Remote fetch pkgs Set reqs script Recursive removal Show list of dependent pkgs R Don't record pkg install Do the same as -r, recursively s Set src dir Show total size of all pkg files Limit output to provided str S Set base dir t Use arg for mkstemp(3) Use arg for mkstemp(3) Use arg for mkstemp(3) Compare pair of expressions T Do same as -t, but return appropriate exit code u U v Verbose Verbose Verbose Verbose Verbose V Packing list format version w W Determine what pkg a file belongs to x Use basic regex Use basic regex Use basic regex X Exclude file Use extended regex Use extended regex Use extended regex y Y Default -> yes z Use gzip compression Z --Apple-Mail-4-262148960 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-4-262148960--