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 B2DF91381F3 for ; Tue, 8 Oct 2013 19:40:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FEBEE0A69; Tue, 8 Oct 2013 19:40:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2249E0A69 for ; Tue, 8 Oct 2013 19:40:02 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD60833ED3A for ; Tue, 8 Oct 2013 19:40:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 80AFFE5460 for ; Tue, 8 Oct 2013 19:40:00 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1381261193.c3afc0c35143a362970c2e7ef0a700feb1ea15e5.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/chpathtool.py X-VCS-Directories: bin/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: c3afc0c35143a362970c2e7ef0a700feb1ea15e5 X-VCS-Branch: master Date: Tue, 8 Oct 2013 19:40:00 +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: da7fab04-0ffb-4d4e-aa80-679951173c65 X-Archives-Hash: 9bd75794f7e8afbba49daa9e9aef05cc commit: c3afc0c35143a362970c2e7ef0a700feb1ea15e5 Author: Mike Frysinger gentoo org> AuthorDate: Tue Oct 8 19:39:53 2013 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Oct 8 19:39:53 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c3afc0c3 chpathtool: use built in %(prog)s for usage --- bin/chpathtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/chpathtool.py b/bin/chpathtool.py index 471582b..b8c6fd5 100755 --- a/bin/chpathtool.py +++ b/bin/chpathtool.py @@ -142,9 +142,9 @@ def chpath_inplace_symlink(filename, st, old, new): def main(argv): - usage = '%s [options] ' % (os.path.basename(argv[0],)) + usage = '%(prog)s [options] ' parser = ArgumentParser(usage=usage) - options, args = parser.parse_known_args(argv[1:]) + options, args = parser.parse_known_args(argv) if len(args) != 3: parser.error('3 args required, got %s' % (len(args),)) @@ -186,4 +186,4 @@ def main(argv): return os.EX_OK if __name__ == '__main__': - sys.exit(main(sys.argv)) + sys.exit(main(sys.argv[1:]))