diff options
| author | Jim Meyering <jim@meyering.net> | 2004-06-21 15:03:35 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2004-06-21 15:03:35 +0000 |
| commit | 1ce7b61d0ea270b0c463198afca1cd0e214192fb (patch) | |
| tree | 947f954d8a82091744d3809da651319e9d82001d /src/du.c | |
| parent | Standardize on the diagnostics given when someone gives (diff) | |
| download | coreutils-1ce7b61d0ea270b0c463198afca1cd0e214192fb.tar.gz coreutils-1ce7b61d0ea270b0c463198afca1cd0e214192fb.zip | |
(main): Standardize on the diagnostics given when someone gives
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
Diffstat (limited to 'src/du.c')
| -rw-r--r-- | src/du.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -735,9 +735,12 @@ main (int argc, char **argv) /* When using --files0-from=F, you may not specify any files on the command-line. */ if (optind < argc) - error (EXIT_FAILURE, 0, - _("%s: you may not specify command-line arguments with\ - --files0-from"), quotearg_colon (argv[optind])); + { + error (0, 0, _("extra operand %s"), quote (argv[optind])); + fprintf (stderr, "%s\n", + _("File operands cannot be combined with --files0-from.")); + usage (EXIT_FAILURE); + } istream = (STREQ (files_from, "-") ? stdin : fopen (files_from, "r")); if (istream == NULL) |
