summaryrefslogtreecommitdiff
path: root/src/ln.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-04-16 01:36:40 +0000
committerJim Meyering <jim@meyering.net>1994-04-16 01:36:40 +0000
commit85274fb9106b3484d4fe48102417b6dbda0e500d (patch)
tree63a1b2331edebdb052e07f425e0b3c524f30dc62 /src/ln.c
parentb26bc02086e0122205f3be4c68cffe62b43e80be (diff)
downloadcoreutils-85274fb9106b3484d4fe48102417b6dbda0e500d.tar.xz
(main): Give a reason for failure when given no
non-option arguments, rather than just the pointer to --help.
Diffstat (limited to 'src/ln.c')
-rw-r--r--src/ln.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ln.c b/src/ln.c
index 9cc487861..21ba6aded 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);