tools/cr/cr/base/context.py
def AddCommonArguments(cls, parser):
    """Adds the command line arguments common to all commands in cr."""
    parser.add_argument(
        '-h', '--help',
        action=_ShowHelp, nargs=0,
        help='show the help message and exit.'
    )
    parser.add_argument(
        '--dry-run', dest='CR_DRY_RUN',
        action='store_true', default=None,
        help="""
          Don't execute commands, just print them. Implies verbose.
          Overrides CR_DRY_RUN
          """
    )
    parser.add_argument('-v',
                        '--verbose',
                        dest='CR_VERBOSE',
                        action='count',
                        default=0,
                        help="""
          Print information about commands being performed.
          Repeating multiple times increases the verbosity level.
          Overrides CR_VERBOSE
          """)
Adds the command line arguments common to all commands in cr.
Adds the command line arguments common to all commands in cr.
Adds the command line arguments common to all commands in cr .
def AddCommonArguments(cls, parser):
    parser.add_argument(
        '-h', '--help',
        action=_ShowHelp, nargs=0,
        help='show the help message and exit.'
    )
    parser.add_argument(
        '--dry-run', dest='CR_DRY_RUN',
        action='store_true', default=None,
        help="""
          Don't execute commands, just print them. Implies verbose.
          Overrides CR_DRY_RUN
          """
    )
    parser.add_argument('-v',
                        '--verbose',
                        dest='CR_VERBOSE',
                        action='count',
                        default=0,
                        help="""
          Print information about commands being performed.
          Repeating multiple times increases the verbosity level.
          Overrides CR_VERBOSE
          """)
def AddCommonArguments ( cls , parser ) : parser . add_argument ( '-h' , '--help' , action = _ShowHelp , nargs = 0 , help = 'show the help message and exit.' ) parser . add_argument ( '--dry-run' , dest = 'CR_DRY_RUN' , action = 'store_true' , default = None , help = """
          Don't execute commands, just print them. Implies verbose.
          Overrides CR_DRY_RUN
          """ ) parser . add_argument ( '-v' , '--verbose' , dest = 'CR_VERBOSE' , action = 'count' , default = 0 , help = """
          Print information about commands being performed.
          Repeating multiple times increases the verbosity level.
          Overrides CR_VERBOSE
          """ )
Adds the command line arguments common to all commands in cr.
Adds the command line arguments common to all commands in cr .
"""Adds the command line arguments common to all commands in cr."""
cls
parser