8 void error(const char *fmt
, ...)
10 fprintf(stderr
, "ERROR: ");
13 vfprintf(stderr
, fmt
, vargs
);
17 void post(const char *fmt
, ...)
21 vfprintf(stderr
, fmt
, vargs
);
25 int main(int argc
, char **argv
)
29 if(argc
>2 && strcmp(argv
[1],"--partial")==0)
30 n
= scdoc_parse_file(argv
[2], SCDOC_PARSE_PARTIAL
);
32 if(argc
>2 && strcmp(argv
[1],"--metadata")==0)
33 n
= scdoc_parse_file(argv
[2], SCDOC_PARSE_METADATA
);
35 n
= scdoc_parse_file(argv
[1], SCDOC_PARSE_FULL
);
38 doc_node_free_tree(n
);
42 fprintf(stderr
, "Usage: %s inputfile.schelp\n",argv
[0]);