print

Print records as human readable.

Synopsis

ndeftool print [OPTIONS]
ndeftool p [OPTIONS]

Description

The print command outputs a formatted representation of all current NDEF Records. By default this is the one line str() representation for each record. The --long format produces multiple indented lines per record in an attempt to provide a more readable output. Printing consumes all records so that no more data is send to stdout or given to the next command. This can be changed with the --keep flag.

When given as the first command print attempts to decode an NDEF message from standard input and process the generated list of records.

Options

-l, --long

Output in a long print format.

-k, --keep

Keep records for next command.

--help

Show this message and exit.

Examples

Print records in short format.

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ndeftool/checkouts/v0.1.0/docs/commands/print.rst, line 54)

Command u’ndeftool text “Hello World” print’ failed: [Errno 2] No such file or directory

Print records in long format.

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ndeftool/checkouts/v0.1.0/docs/commands/print.rst, line 58)

Command u’ndeftool text “Hello World” print –long’ failed: [Errno 2] No such file or directory

Print records in both short and long format.

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ndeftool/checkouts/v0.1.0/docs/commands/print.rst, line 62)

Command u’ndeftool text “Hello World” print –keep print –long’ failed: [Errno 2] No such file or directory