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.

$ ndeftool text "Hello World" print
NDEF Text Record ID '' Text 'Hello World' Language 'en' Encoding 'UTF-8'

Print records in long format.

$ ndeftool text "Hello World" print --long
NFC Forum Text Record [record #1]
  content    Hello World
  language   en
  encoding   UTF-8

Print records in both short and long format.

$ ndeftool text "Hello World" print --keep print --long
NDEF Text Record ID '' Text 'Hello World' Language 'en' Encoding 'UTF-8'
NFC Forum Text Record [record #1]
  content    Hello World
  language   en
  encoding   UTF-8