Skip to content

add optional headers to cli scripts #2294

@oupala

Description

@oupala

The script output would be more easily readable if there was headers outputted. It could be an option to output the headers or not (--headers true or --headers false).

I was thinking about something like that:

>php cli/user-info.php -h --user myuser --headers false
*	myuser	2019-03-22T22:10:11+01:00	5.77 MiB	4 categories	20 feeds	909 reads	1 unreads	2 favourites

>php cli/user-info.php -h --user myuser --headers true
admin username last update               total space used # of categories # of feeds # of reads posts # of unreads posts # of favorite posts
-----|--------|-------------------------|----------------|---------------|----------|----------------|------------------|-------------------
*     myuser   2019-03-22T22:10:11+01:00 5.77 MiB         4 categories    20 feeds   909 reads        1 unreads          2 favourites

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions