From dc830434bffbe29195193cac3238b480bb99c473 Mon Sep 17 00:00:00 2001 From: David Betz Date: Sat, 21 Feb 2015 08:13:08 -0500 Subject: [PATCH] Complain if neither a file to load or -t are specified. --- p1load.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/p1load.c b/p1load.c index affa87f..3529444 100644 --- a/p1load.c +++ b/p1load.c @@ -185,6 +185,12 @@ int main(int argc, char *argv[]) return 1; } } + + /* complain about nothing to do */ + else { + printf("error: must specify either a file to load or -t\n"); + return 1; + } /* check for a file to load */ if (file) {