logo

openpt

Fake a pseudo-terminal for testsuites
commit: aef4f11259fb8c70a1b5f62abed7bba6c853cc28
parent 526485532261715f52b90c159663a13297b9c574
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 24 Jul 2024 15:48:11 +0200

openpt.c: print usage information on argc<1

Diffstat:

Mopenpt.c1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/openpt.c b/openpt.c @@ -33,6 +33,7 @@ main(int argc, char *argv[]) if(argc < 1) { fprintf(stderr, "openpt: Expected >= 1 arguments, got %d\n", argc); + fprintf(stderr, "Usage: openpt command [argument...]\n"); return 1; }