From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1AB92139084 for ; Sun, 2 Mar 2014 07:44:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EF07E0A93; Sun, 2 Mar 2014 07:44:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF630E0A8E for ; Sun, 2 Mar 2014 07:44:09 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1C9933FB60 for ; Sun, 2 Mar 2014 07:44:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 605FC188EB for ; Sun, 2 Mar 2014 07:44:07 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1382246296.9c79ab5df791ca60f42bf939102ccca3845daa5f.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/main.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 9c79ab5df791ca60f42bf939102ccca3845daa5f X-VCS-Branch: master Date: Sun, 2 Mar 2014 07:44:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 89e86903-0522-4529-a422-376e8cd69f67 X-Archives-Hash: c9d4fe47c3474824a03ad0f2909aeb19 commit: 9c79ab5df791ca60f42bf939102ccca3845daa5f Author: Brian Dolbec gentoo org> AuthorDate: Sun Oct 20 05:18:16 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Oct 20 05:18:16 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=9c79ab5d Make --debug level settable on the cli --- mirrorselect/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirrorselect/main.py b/mirrorselect/main.py index 0e41f30..85b0345 100755 --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -224,8 +224,8 @@ class MirrorSelect(object): "to select. this is only valid for download mirrors. " "If this is not specified, a default of 1 is used.") group.add_option( - "-d", "--debug", action="store_const", const=2, dest="verbosity", - default=1, help="debug mode") + "-d", "--debug", action="store", type="int", dest="verbosity", + default=1, help="debug mode, pass in the debug level [1-9]") group.add_option( "-q", "--quiet", action="store_const", const=0, dest="verbosity", help="Quiet mode")