MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/od.c:350–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348};
349
350void
351usage (int status)
352{
353 if (status != EXIT_SUCCESS)
354 emit_try_help ();
355 else
356 {
357 printf (_("\
358Usage: %s [OPTION]... [FILE]...\n\
359 or: %s [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]\n\
360 or: %s --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]\n\
361"),
362 program_name, program_name, program_name);
363 fputs (_("\n\
364Write an unambiguous representation, octal bytes by default,\n\
365of FILE to standard output. With more than one FILE argument,\n\
366concatenate them in the listed order to form the input.\n\
367"), stdout);
368
369 emit_stdin_note ();
370
371 fputs (_("\
372\n\
373If first and second call formats both apply, the second format is assumed\n\
374if the last operand begins with + or (if there are 2 operands) a digit.\n\
375An OFFSET operand means -j OFFSET. LABEL is the pseudo-address\n\
376at first byte printed, incremented when dump is progressing.\n\
377For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal;\n\
378suffixes may be . for octal and b for multiply by 512.\n\
379"), stdout);
380
381 emit_mandatory_arg_note ();
382
383 oputs (_("\
384 -A, --address-radix=RADIX\n\
385 output format for file offsets;\n\
386 RADIX is one of [doxn], for Decimal, Octal, Hex or None\n\
387"));
388 oputs (_("\
389 --endian={big|little}\n\
390 swap input bytes according the specified order\n\
391"));
392 oputs (_("\
393 -j, --skip-bytes=BYTES\n\
394 skip BYTES input bytes first\n\
395"));
396 oputs (_("\
397 -N, --read-bytes=BYTES\n\
398 limit dump to BYTES input bytes\n\
399"));
400 oputs (_("\
401 -S BYTES, --strings[=BYTES]\n\
402 show only NUL terminated strings\n\
403 of at least BYTES (default 3) printable characters\n\
404"));
405 oputs (_("\
406 -t, --format=TYPE\n\
407 select output format or formats\n\

Callers 1

mainFunction · 0.70

Calls 3

emit_stdin_noteFunction · 0.85
emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected