def add_split_parser(parser):
parser.description = """The split command separates an an NDEF
message into individual records. If data is read from a file,
records are written as binary data into individual files with file
names constructed from the input file base name, a hyphen followed
by a three digit number and the input file name extension. If data
is read from stdin, records are written to stdout as individual
lines of hexadecimal strings."""
parser.set_defaults(func=split)
parser.add_argument(
"input", metavar="message", type=argparse.FileType('r'),
help="message file ('-' to read from stdin)")
parser.add_argument(
"--keep-message-flags", dest="keepmf", action="store_true",
help="do not reset message begin and end flags")
评论列表
文章目录