diff options
author | Rainer Gerhards | 2015-03-07 12:14:21 +0100 |
---|---|---|
committer | Karel Zak | 2015-03-10 11:19:33 +0100 |
commit | ae6846b842b4912f03730ac475e19a7916302893 (patch) | |
tree | 78016ee51b94a574c96c31f897a3faccd9d46b7a /bash-completion | |
parent | logger man page: update --size doc (diff) | |
download | kernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.tar.gz kernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.tar.xz kernel-qcow2-util-linux-ae6846b842b4912f03730ac475e19a7916302893.zip |
logger: add --skip-empty-lines to prevent logging empty lines
Empty log messages are generally considered useless. This option
enables to turn them off when processing files (including stdin).
[kzak@redhat.com: - rename --skip-empty-lines to --skip-empty,
- add the option to getopt_long(),
- add the option to bash-completion]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/logger | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/logger b/bash-completion/logger index 593a67824..dcbfa9b62 100644 --- a/bash-completion/logger +++ b/bash-completion/logger @@ -37,7 +37,7 @@ _logger_module() esac case $cur in -*) - OPTS="--journald --udp --id --file --help --server --port --priority --rfc3164 --rfc5424 --stderr --tag --size --socket --version" + OPTS="--journald --udp --id --file --help --server --skip-empty --port --priority --rfc3164 --rfc5424 --stderr --tag --size --socket --version" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; |