flag explicit

Mode: Operational Mode

Description:

The explicit flag indicates that the default value is explicitly used when the user does not specify a value for the argument. Hence, a default value should be defined for the argument.

Example:

            command newbie {
                help "Show newbie";
                EXAMPLED_ACTION;

                argument group {
                    flag explicit nokeyword;
                    help "Business Unit";
                    choice apg {
                        help "Newbie works for APG";
                    }
                    choice ipg {
                        help "Newbie works for IPG";
                    }
                    choice spg {
                        help "Newbie works for SPG";
                    }
                    default ipg;
                }
            }

Display:

If the CLI user does not specify the group, ipg is used.

        user@router> show example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          apg                  Newbie works for APG
          ipg                  Newbie works for IPG
          spg                  Newbie works for SPG
          |                    Pipe through a command
        user@router>

Topics for further reading:

See also:

Reference (to programmers guide/style guide):


2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:13 2010 for DDL Reference Guide by doxygen 1.4.5