[systemd-devel] [TOOL] Check-undocumented arguments and bash autocompletions

Carlos Morata Castillo cmc809 at inlumine.ual.es
Fri Jan 9 12:42:45 PST 2015


Hi,

I've been working in this tool today for the tools dir:

./check-undocumented.sh -m
################################################################################
#                Uncompleted MANPAGES                             #
################################################################################
Updates needed in ../man/systemd-notify.xml ...Need to document the
command "--readahead=ACTION" Updates needed
in ../man/systemd-ask-password.xml ...Need to document the command
"--id=ID" Updates needed in ../man/systemd-cgtop.xml
...Need to document the command "--cpu[=TYPE]"
Updates needed in ../man/systemd-nspawn.xml
...Need to document the command "-S"
Updates needed in ../man/systemd-analyze.xml
...Need to document the command "--man[=BOOL]"
Updates needed in ../man/systemd-firstboot.xml
...Need to document the command "--machine-ID=ID"
Usage: udevadm [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]

Command not found or unknown options: udevadm!
Command not found or unknown options: systemd-hwdb!
Updates needed in ../man/localectl.xml
...Need to document the command "--machine=CONTAINER"
No manpage for systemd-import!
No manpage for networkctl!
--------------

I think it works pretty neat and gives you a great help.
It has support for bash autocompletions also:

./check-undocumented.sh -p hostnamectl
Not standar hostnamectl.Update please.
Updates needed in ../shell-completion/bash/hostnamectl
...Not found "--machine"

...--------------------

./check-undocumented.sh [OPTIONS...]

Search for undocumented options and bash autocompletions

-h|help       Show this help
-m|man        Search only for manpages
-b|bash       Search only for bash autocompletions
-f|full       Search for everything
-p=PROGRAM    Search for undocumented program

-------


It'll be nice to have a toolset with solid autocompletion and
documentation. ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-undocumented.sh
Type: application/x-shellscript
Size: 6034 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150109/094b9803/attachment.bin>


More information about the systemd-devel mailing list