simon-git: filter (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu Aug 8 19:48:27 BST 2019
TL;DR:
6058a2c Make -q do something in pipe mode.
813a58d Add --help option to all programs.
7058d01 Add an internal errmsg() function.
Repository: https://git.tartarus.org/simon/filter.git
On the web: https://git.tartarus.org/?p=simon/filter.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-08-08 19:48:27
commit 6058a2c8812cffb43b4e0560f36a6ed192ee74a0
web diff https://git.tartarus.org/?p=simon/filter.git;a=commitdiff;h=6058a2c8812cffb43b4e0560f36a6ed192ee74a0;hp=a94cbacf1c7746a897e10b3033431f8afd53057f
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Aug 8 19:43:49 2019 +0100
Make -q do something in pipe mode.
Apparently it's always only ever applied to pty mode.
filter.h | 1 +
main.c | 24 ++++++++++++++++++++++--
mainloop.c | 8 ++++++++
3 files changed, 31 insertions(+), 2 deletions(-)
commit 813a58dbdf343a90c712427342a6f0684bde4804
web diff https://git.tartarus.org/?p=simon/filter.git;a=commitdiff;h=813a58dbdf343a90c712427342a6f0684bde4804;hp=6058a2c8812cffb43b4e0560f36a6ed192ee74a0
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Aug 8 19:31:00 2019 +0100
Add --help option to all programs.
Every filter program now exports a bunch of string-constant and
string-array variables, and main() provides a --help option which puts
those together with the standard boilerplate into a per-tool online
help.
Mostly because I couldn't remember what an option did today, and I
thought, while I'm finding out, let's document all the rest of them
too just in case.
asciify.c | 10 ++++++++++
cstrans.c | 14 ++++++++++++++
deidle.c | 14 ++++++++++++++
filter.h | 12 ++++++++++++
idletrans.c | 14 ++++++++++++++
main.c | 38 +++++++++++++++++++++++++++++++++++++-
nhtrans.c | 7 +++++++
noinput.c | 6 ++++++
noprogress.c | 7 +++++++
nulltrans.c | 7 +++++++
parity.c | 13 +++++++++++++
record.c | 16 ++++++++++++++++
12 files changed, 157 insertions(+), 1 deletion(-)
commit 7058d01a5347d1100cbe2f60ba71ab5ba3edbbd3
web diff https://git.tartarus.org/?p=simon/filter.git;a=commitdiff;h=7058d01a5347d1100cbe2f60ba71ab5ba3edbbd3;hp=813a58dbdf343a90c712427342a6f0684bde4804
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Aug 8 19:32:08 2019 +0100
Add an internal errmsg() function.
This lets you just specify the actual text of a particular error, and
deals itself with prefixing the program name, suffixing \n, and
sending it to standard error.
Mainly I thought this would be a good idea simply because I now _have_
each program's official name conveniently available as a consequence
of the --help change - so now the errors for each tool should
consistently cite that tool's binary name, instead of some of them
just having the generic 'filter:' prefix.
asciify.c | 11 +++++------
cstrans.c | 11 +++++------
deidle.c | 6 +++---
filter.h | 2 ++
idletrans.c | 6 +++---
linktty.c | 13 ++++++++++++-
main.c | 11 +++++++++++
mainloop.c | 2 +-
nhtrans.c | 6 +++---
noinput.c | 4 ++--
noprogress.c | 6 +++---
nulltrans.c | 4 ++--
parity.c | 6 +++---
record.c | 9 ++++-----
14 files changed, 59 insertions(+), 38 deletions(-)
More information about the tartarus-commits
mailing list