mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
man, systemctl: document --what=help
This commit is contained in:
@@ -616,6 +616,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
|
||||
<entry><literal>all</literal></entry>
|
||||
<entry>All of the above</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>help</literal></entry>
|
||||
<entry>Show the supported values and exit</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
@@ -958,7 +958,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
|
||||
|
||||
case ARG_WHAT:
|
||||
if (isempty(optarg))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--what= requires arguments.");
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--what= requires arguments (see --what=help).");
|
||||
|
||||
for (const char *p = optarg;;) {
|
||||
_cleanup_free_ char *k = NULL;
|
||||
|
||||
Reference in New Issue
Block a user