siliconsam / imp2022

IMP77 compiler for Linux
1 stars 0 forks source link

default command-line verbosity #5

Open gtoal opened 6 months ago

gtoal commented 6 months ago

Way too much output from command-line utilities. If we can't have the unix-style 'no output unless there are errors' can we at least have Edinburgh-style one or two liners. All the Gla/Glap numbers etc can go in the .lis file, we don't need them on the screen. If utilities default to output can we have a -q option for quiet? If no output is the default, maybe a -v option for verbose.

Imp sometimes returns the number of errors as the exit code. This would be reasonable for the linux implementation. Not that I've ever heard of anyone making use of it.

G

imp2022@linux:~/src/imptests$ imp2022 test.imp 6 Statements compiled

ELF object file generated from IMP source file: '/home/imp2022/src/imptests/test.imp' +----------+---------------------+---------+---------+---------+------------+ | Sections | Symbols | Code | Data | Diag | Total size | +----------+----------+----------+---------+---------+---------+------------+ | (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes) | +----------+----------+----------+---------+---------+---------+------------+ | 10 | 5 | 5 | 135 | 0 | 32 | 167 | +----------+----------+----------+---------+---------+---------+------------+