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

Function usage

src/pinky.c:476–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476void
477usage (int status)
478{
479 if (status != EXIT_SUCCESS)
480 emit_try_help ();
481 else
482 {
483 printf (_("Usage: %s [OPTION]... [USER]...\n"), program_name);
484 fputs (_("\
485\n\
486"), stdout);
487 oputs (_("\
488 -l produce long format output for the specified USERs\n\
489"));
490 oputs (_("\
491 -b omit the user's home directory and shell in long format\n\
492"));
493 oputs (_("\
494 -h omit the user's project file in long format\n\
495"));
496 oputs (_("\
497 -p omit the user's plan file in long format\n\
498"));
499 oputs (_("\
500 -s do short format output, this is the default\n\
501"));
502 oputs (_("\
503 -f omit the line of column headings in short format\n\
504"));
505 oputs (_("\
506 -w omit the user's full name in short format\n\
507"));
508 oputs (_("\
509 -i omit the user's full name and remote host in short format\n\
510"));
511 oputs (_("\
512 -q omit the user's full name, remote host and idle time in short format\n\
513"));
514 oputs (_("\
515 --lookup\n\
516 attempt to canonicalize hostnames via DNS\n\
517"));
518 oputs (HELP_OPTION_DESCRIPTION);
519 oputs (VERSION_OPTION_DESCRIPTION);
520 printf (_("\
521\n\
522A lightweight 'finger' program; print user information.\n\
523The utmp file will be %s.\n\
524"), UTMP_FILE);
525 emit_ancillary_info (PROGRAM_NAME);
526 }
527 exit (status);
528}
529
530int
531main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected