pub fn build_program_record(
version: &str,
command_line: &str,
previous_program: Option<&str>,
) -> Result<Map<Program>>Expand description
Build a @PG record with all standard fields.
§Arguments
version- Program version stringcommand_line- Full command line invocationprevious_program- Optional ID of previous program for PP chaining
§Returns
A Map<Program> ready to add to a header.
§Errors
Returns an error if the program record cannot be built.