diff options
-rw-r--r-- | xe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xe.c b/xe.c index 806485a..a660435 100644 --- a/xe.c +++ b/xe.c @@ -342,6 +342,11 @@ main(int argc, char *argv[], char *envp[]) break; } } + if (i >= argc) { + fprintf(stderr, "xe: '-A %s' used but no separator " + "'%s' found in command line.\n", argsep, argsep); + exit(1); + } } arg = getarg(); |