Return-Path: From: "Daniel Sangorrin" References: <003a01d3fe1e$81255da0$837018e0$@toshiba.co.jp> <000001d402dd$7906be20$6b143a60$@toshiba.co.jp> In-Reply-To: Date: Thu, 28 Jun 2018 16:21:29 +0900 Message-ID: <000201d40eb0$a1efd770$e5cf8650$@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 > Sent: Saturday, June 16, 2018 6:54 PM > To: Daniel Sangorrin > Subject: Re: [Fuego] quiet vs verbose >=20 > On Tue, Jun 12, 2018 at 11:12 PM, Daniel Sangorrin > wrote: > >> -----Original Message----- > >> From: Tim.Bird@sony.com [mailto:Tim.Bird@sony.com] > ... > > What do you think about these usage? > > > > default: machine readable output (like previous "quiet") > > -q: no output at all > This is probably better, as that's what most users would expect >=20 > > -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) >=20 > I like some of these distinctions, but would prefer the following: >=20 > -q: no output at all. Thinking twice, the user can always redirect output to /dev/null. For = that reason, we don't really need this option, do we? > (no options): same as now (human readable, non-verbose) > -v: same as now (human readable, verbose) > -v-: what -q used to be (machine readable, or "not verbose") humm It looks a bit weird to me. How about --machine-readable? (explicit, long but easy to understand) Note: using --machine-readable and -v or --debug at the same time should = give an error? > --debug xx: used for debug, but with one bit reserved for ftc internal > debug (16) > (so, '--debug 16' would be the equivalent of the old '--debug', and > '--debug 31' would debug > everything, including ftc. Turning on flags for operations not = performed (e.g. > the parser debug flag, when you're doing 'ftc list-nodes', would have = no effect. I would rather separate the API from the implementation. For example, = instead of using bitmaps in the API we can use easy-to-remember words like = "--debug ftc,parser,charting". Then, it will be easy to change the implementation if we happen to run = out of bits. Thanks, Daniel