This seems ineligant. Programmatically print the test suite name at tests/$suite/Name
, falling back to the folder name itself.
GNU false(1), a notoriously POSIX non-compliant implementation, would pass here, as (if I recall) it returns EXIT_FAILURE
for improper usage. It shouldn't pass, though, because it prints a usage text to the standard output when usage help or version information are queried.
Could we use [
as test
? The left-bracket use is a code smell for me as it tends to be more error prone. This particular usage seems fine.
I added some small additional fixes to this branch.
- You changed
return 0
toreturn EXIT_SUCCESS
, which was good, butreturn 1
was still present, so I changed it toreturn EXIT_FAILURE
.…
This phrasing is in line with many other man page descriptions I have read and I find it to be the best solution to the problem of program names being hard to fit into grammar (to capitalize or…
scroll(1)
– pager
I think a very light pager would be useful in addition to a (necessarily) slightly heavier editor. We could have two editors - pg(1) (operating in cooked mode using stdio.h) and scroll(1)…