# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import argparse import sys
from .. import commandline, handlers, reader
def get_parser(add_help=True):
parser = argparse.ArgumentParser( "format", description="Format a structured log stream", add_help=add_help
)
parser.add_argument( "--input",
action="store",
default=None,
help="Filename to read from, defaults to stdin",
)
parser.add_argument( "--output",
action="store",
default=None,
help="Filename to write to, defaults to stdout",
)
parser.add_argument( "format", choices=list(commandline.log_formatters.keys()), help="Format to use"
) return parser
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.