8 int main(int argc, char **argv)
13 if (argc != 2 && argc != 3) {
14 fprintf(stderr, "Usage: %s <URL> [update]\n", argv[0]);
18 /* discard log output */
19 null = fopen("/dev/null", "w");
20 pb_log_set_stream(null);
22 url = pb_url_parse(NULL, argv[1]);
27 printf("%s\n", argv[1]);
30 printf("%s %s\n", argv[1], argv[2]);
31 url = pb_url_join(NULL, url, argv[2]);
34 printf("scheme\t%s\n", pb_url_scheme_name(url->scheme));
35 printf("host\t%s\n", url->host);
36 printf("port\t%s\n", url->port);
37 printf("path\t%s\n", url->path);
38 printf("dir\t%s\n", url->dir);
39 printf("file\t%s\n", url->file);