Return-Path: From: "Daniel Sangorrin" References: <003a01d3fe1e$81255da0$837018e0$@toshiba.co.jp> In-Reply-To: Date: Wed, 13 Jun 2018 15:12:14 +0900 Message-ID: <000001d402dd$7906be20$6b143a60$@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: ja Subject: Re: [Fuego] quiet vs verbose List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tim.Bird@sony.com, fuego@lists.linuxfoundation.org > -----Original Message----- > From: Tim.Bird@sony.com [mailto:Tim.Bird@sony.com] > Sent: Tuesday, June 12, 2018 12:27 PM > To: daniel.sangorrin@toshiba.co.jp; fuego@lists.linuxfoundation.org > Subject: RE: [Fuego] quiet vs verbose >=20 > > -----Original Message----- > > From: Daniel Sangorrin > > > > I am trying to move from ftc manual argument parsing into argparse. > > Why do we have quiet, debug and verbose variables? > > Are they all necessary? >=20 > They serve different purposes. > The main intent of 'quiet' is to cause ftc to produce machine-readable = output. > This is for things like lists, the elements of which would be used to = do additional > queries or operations, possibly under web-based control. it is = intended > to remove human-friendly "decorations" on the output. 'quiet' is for > automating use of 'ftc'. >=20 > The main intent of 'verbose' is to cause ftc to produce more = user-oriented > human-readable content (with more information about operations being > performed, or nicer indentation, etc.) >=20 > The main intent of 'debug' is for out-of-the-ordinary messages, which = are > only interesting to developers (or end users desperate to see why = something > is going wrong). Usually, I don't advertise the --debug option for = my > command line tools (that is, I don't mention it in the help). Now > that --debug is coalescing with FUEGO_DEBUG, it somewhat complicates > this particular flag and it's meaning. >=20 > I don't know how this squares with what you want to do with argparse. > Only some routines use quiet, but we can make these flags all global, = and > just have them have no effect when they don't make any sense. > Let me know what you think. > -- Tim Thanks for the explanation. What do you think about these usage? default: machine readable output (like previous "quiet") -q: no output at all -v: verbose (like previous "not quiet") -vv: more verbose (like previous "verbose") -vvv: ftc debug messages (like previous "debug") --debug: parameter for FUEGO_DEBUG that has no effect on ftc (passed = only to add-jobs and run-test) Regards, Daniel