From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126947 invoked by alias); 13 Jan 2020 16:58:57 -0000 Mailing-List: contact bunsen-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Sender: bunsen-owner@sourceware.org Received: (qmail 126844 invoked by uid 48); 13 Jan 2020 16:58:53 -0000 From: "me at serhei dot io" To: bunsen@sourceware.org Subject: [Bug bunsen/25090] [v1.0] improved command line args parsing Date: Wed, 01 Jan 2020 00:00:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: bunsen X-Bugzilla-Component: bunsen X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: me at serhei dot io X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bunsen at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2020-q1/txt/msg00004.txt https://sourceware.org/bugzilla/show_bug.cgi?id=3D25090 Serhei Makarov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #2 from Serhei Makarov --- A better format for specifying args would be, e.g.: #!/usr/bin/env python3 from common.cmdline_args import default_args info=3D'''Walk the history of the specified branch (default master) of the = Git repo source_repo. For every commit, compare testruns under specified project with testruns for the parent commit. Print a summary of how test results change for testcases whose name contains the specified substring .''' cmdline_args=3Ddefault_args+[ ('project', None, 'tags', 'restrict to testruns under '), ('key', None, 'glob', 'restrict to testcases matching '), ('source_repo', None, 'path', 'scan commits from source_repo'), ('branch', 'master', 'name', 'scan commits in branch '), ] A more informative usage message can then be generated from this data. --=20 You are receiving this mail because: You are the assignee for the bug.