.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH alpm-srcinfo-format 1 "alpm-srcinfo-format " .SH NAME alpm\-srcinfo\-format \- Format a SRCINFO file from a path or `stdin` .SH SYNOPSIS \fBalpm\-srcinfo format\fR [\fB\-s\fR|\fB\-\-schema\fR] [\fB\-o\fR|\fB\-\-output\-format\fR] [\fB\-p\fR|\fB\-\-pretty\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIFILE\fR] .SH DESCRIPTION Format a SRCINFO file from a path or `stdin`. .PP If the file is valid, the program prints the data in the requested file format to stdout and returns with an exit status of 0. .SH OPTIONS .TP \fB\-s\fR, \fB\-\-schema\fR=\fIVERSION\fR Provide the SRCINFO schema version to use. If no schema version is provided, it will be deduced from the file itself. .TP \fB\-o\fR, \fB\-\-output\-format\fR=\fIOUTPUT_FORMAT\fR [default: srcinfo] Provide the output format .br .br \fIPossible values:\fR .RS 14 .IP \(bu 2 json: The JSON output format .IP \(bu 2 srcinfo: The SRCINFO output format .RE .TP \fB\-p\fR, \fB\-\-pretty\fR Pretty\-print the output. Only applies to formats that support pretty output and is otherwise ignored. .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP [\fIFILE\fR] The file to read from. If no file is provided, stdin is used instead.