]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsns: add --filter option to the --help optout and the completion rule
authorMasatake YAMATO <yamato@redhat.com>
Fri, 19 Apr 2024 17:17:05 +0000 (02:17 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 19 Apr 2024 17:17:05 +0000 (02:17 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
bash-completion/lsns
sys-utils/lsns.c

index fb118df55dfbfa0a6db278928bfdfb412053fa90..79c719056c47d8a7b64d71c3e86e26c8d97a896f 100644 (file)
@@ -36,6 +36,7 @@ _lsns_module()
        case $cur in
                -*)
                        COMPREPLY=( $(compgen -W "
+                                       --filter
                                        --json
                                        --list
                                        --noheadings
index 67a563ebc3251f45bf9c9e928ba21ba625b35de3..89484dd5831fccbeeb120762717bbe97c76af028 100644 (file)
@@ -1450,6 +1450,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --output-all       output all columns\n"), out);
        fputs(_(" -P, --persistent       namespaces without processes\n"), out);
        fputs(_(" -p, --task <pid>       print process namespaces\n"), out);
+       fputs(_(" -Q, --filter <expr>    apply display filter\n"), out);
        fputs(_(" -r, --raw              use the raw output format\n"), out);
        fputs(_(" -u, --notruncate       don't truncate text in columns\n"), out);
        fputs(_(" -W, --nowrap           don't use multi-line representation\n"), out);