# How to hide a leaf node in CLI help?

**URL:** <https://dmap-community.ductus.global/t/how-to-hide-a-leaf-node-in-cli-help/749>\
**Category:** YANG\
**Created:** [October 2, 2016, 3:49pm UTC](https://dmap-community.ductus.global/t/how-to-hide-a-leaf-node-in-cli-help/749 "2016-10-02T15:49:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [August 10, 2018, 10:32am UTC](https://dmap-community.ductus.global/t/how-to-hide-a-leaf-node-in-cli-help/749/6 "2018-08-10T10:32:09Z")

</div>

Hi Xiangping,

Take this YANG model from the ConfD example `examples.confd/cli/climods`

```xml
    container arp3 {
        config false;
        tailf:callpoint jarp_data;
        list arpe {
            key "ip ifname";
            max-elements 1024;
            leaf ip {
                type inet:ip-address;
            }
            leaf ifname {
                type string;
            }
            leaf hwaddr {
                tailf:cli-suppress-show-path;
                type string;
                mandatory true;
            }
            leaf permanent {
                tailf:cli-suppress-show-match;
                type boolean;
                mandatory true;
            }
            leaf published {
                type boolean;
                mandatory true;
            }
        }
    }

```

CLI:

```java
# show arp3 arpe <TAB PRESSED>
Possible completions:
  10.0.0.1 10.0.0.2 192.168.0.2 | <cr>
Possible match completions:
  published

```

Only the “published” leaf is shown as “Possible match completions” since the “tailf:cli-suppress-show-match” and “tailf:cli-suppress-show-path” extensions are used with the “hwaddr” and “permanent” leafs.

You describe your use case as being more advanced, and so I believe you need to use for example the clispec completionpoint. See ConfD UG 16.13.1. Customizing CLI completion and examples.confd/cli/completions for more details.

Regards

---

_[View the full topic](https://dmap-community.ductus.global/t/how-to-hide-a-leaf-node-in-cli-help/749)._
