summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-26 13:09:17 +0000
committerJim Meyering <jim@meyering.net>2004-06-26 13:09:17 +0000
commitb5110a1746bf172ba7f2abef09686851c4d7615c (patch)
tree91f45cb4e1aa4f0bbe0197a746e7401b3064a402 /src
parent717b102865af5afe6361b7b4ce9707065f70de81 (diff)
downloadcoreutils-b5110a1746bf172ba7f2abef09686851c4d7615c.tar.xz
(main): When given no arguments, print the standard
"missing operand\nTry printf --help..." message -- to be consistent.
Diffstat (limited to 'src')
-rw-r--r--src/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index af2f31afa..bbd80edc5 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -572,8 +572,8 @@ main (int argc, char **argv)
if (argc <= 1)
{
- fprintf (stderr, _("Usage: %s format [argument...]\n"), program_name);
- exit (EXIT_FAILURE);
+ error (0, 0, _("missing operand"));
+ usage (EXIT_FAILURE);
}
format = argv[1];