.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH alpm-pkginfo-format 1 "alpm-pkginfo-format " .SH NAME alpm\-pkginfo\-format \- Parse a PKGINFO file and output it in a different file format .SH SYNOPSIS \fBalpm\-pkginfo format\fR [\fB\-o\fR|\fB\-\-output\-format\fR] [\fB\-p\fR|\fB\-\-pretty\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIFILE\fR] .SH DESCRIPTION Parse a PKGINFO file and output it in a different file format .PP If the input can be validated according to a known schema, the program writes the PKGINFO data to stdout in a different file format (optionally, a file path to write to may be provided) and exits with a return code of 0. Currently only JSON is supported as output format. If the input can not be validated according to a known schema, an error is emitted on stderr and the program exits with a non\-zero exit code. .SH OPTIONS .TP \fB\-o\fR, \fB\-\-output\-format\fR=\fIOUTPUT_FORMAT\fR [default: json] The output format to use Currently only "json" (the default) is supported .br .br [\fIpossible values: \fRjson] .TP \fB\-p\fR, \fB\-\-pretty\fR Pretty\-print the output Has no effect if the output format can not be pretty printed. .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP [\fIFILE\fR] An optional input file path to read from If no file path is specified, stdin is read from and expected to contain PKGINFO data to format.