The short option for --list is -l, not -1. The code that defines the
option is src/XrdApps/XrdMapCluster.cc line 481:

  {OPT_TYPE "list",      1, 0, (int)'l'},

$ xrdmapc -1
xrdmapc: Invalid option, '-1'.
$ xrdmapc -l
xrdmapc: '-l' argument missing.

Add a zero-width space (&) before 'all' at the start of the line, so
that the apostrophe at the start of the line is not interpreted as a
macro.

Fixes rpmlint warning:

$ rpmlint xrootd-client
xrootd-client.x86_64: W: manual-page-warning /usr/share/man/man1/xrdmapc.1.gz 21: warning: macro `all'' not defined
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Also fixes broken rendering of the man page where the line with the
unknown macro is ignored.

Original:

OPTIONS
-1 | --list [all|m|s]

   -q | --quiet
        Does not print error messages to cerr; errors appear inline.

Updated:

OPTIONS
-l | --list [all|m|s]
'all' lists managers and servers (default), 'm' lists only man‐
agers and 's' lists only servers.

   -q | --quiet
        Does not print error messages to cerr; errors appear inline.

You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1201

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1201", "url": "https://github.com/xrootd/xrootd/pull/1201", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1