| 61 | }; |
| 62 | |
| 63 | void |
| 64 | usage (int status) |
| 65 | { |
| 66 | if (status != EXIT_SUCCESS) |
| 67 | emit_try_help (); |
| 68 | else |
| 69 | { |
| 70 | printf (_("Usage: %s [OPTION]... FILE...\n"), program_name); |
| 71 | fputs (_("\ |
| 72 | Print the resolved absolute file name.\n\ |
| 73 | "), stdout); |
| 74 | oputs (_("\ |
| 75 | -E, --canonicalize all but the last component must exist (default)\ |
| 76 | \n\ |
| 77 | ")); |
| 78 | oputs (_("\ |
| 79 | -e, --canonicalize-existing all components of the path must exist\n\ |
| 80 | ")); |
| 81 | oputs (_("\ |
| 82 | -m, --canonicalize-missing no path components need exist or be a directory\ |
| 83 | \n\ |
| 84 | ")); |
| 85 | oputs (_("\ |
| 86 | -L, --logical resolve '..' components before symlinks\n\ |
| 87 | ")); |
| 88 | oputs (_("\ |
| 89 | -P, --physical resolve symlinks as encountered (default)\n\ |
| 90 | ")); |
| 91 | oputs (_("\ |
| 92 | -q, --quiet suppress most error messages\n\ |
| 93 | ")); |
| 94 | oputs (_("\ |
| 95 | --relative-to=DIR print the resolved path relative to DIR\n\ |
| 96 | ")); |
| 97 | oputs (_("\ |
| 98 | --relative-base=DIR print absolute paths unless paths below DIR\n\ |
| 99 | ")); |
| 100 | oputs (_("\ |
| 101 | -s, --strip, --no-symlinks don't expand symlinks\n\ |
| 102 | ")); |
| 103 | oputs (_("\ |
| 104 | -z, --zero end each output line with NUL, not newline\n\ |
| 105 | ")); |
| 106 | oputs (HELP_OPTION_DESCRIPTION); |
| 107 | oputs (VERSION_OPTION_DESCRIPTION); |
| 108 | emit_ancillary_info (PROGRAM_NAME); |
| 109 | } |
| 110 | exit (status); |
| 111 | } |
| 112 | |
| 113 | /* A wrapper around canonicalize_filename_mode(), |
| 114 | to call it twice when in LOGICAL mode. */ |
no test coverage detected