]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Give a reason for failure when given no
authorJim Meyering <jim@meyering.net>
Sat, 16 Apr 1994 01:36:40 +0000 (01:36 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Apr 1994 01:36:40 +0000 (01:36 +0000)
non-option arguments, rather than just the pointer to --help.

src/ln.c

index 9cc48786124caea5d71af7c8f1c5cb8f611ddb59..21ba6aded2843fa04be90e5be5fbb49cee313c82 100644 (file)
--- 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);