From: Jim Meyering Date: Sat, 16 Apr 1994 01:36:40 +0000 (+0000) Subject: (main): Give a reason for failure when given no X-Git-Tag: textutils-1_12_1~720 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85274fb9106b3484d4fe48102417b6dbda0e500d;p=thirdparty%2Fcoreutils.git (main): Give a reason for failure when given no non-option arguments, rather than just the pointer to --help. --- diff --git a/src/ln.c b/src/ln.c index 9cc4878612..21ba6aded2 100644 --- a/src/ln.c +++ b/src/ln.c @@ -193,7 +193,10 @@ main (argc, argv) usage (0); if (optind == argc) - usage (1); + { + error (0, 0, "missing file argument"); + usage (1); + } if (make_backups) backup_type = get_version (version);