8 int main(int argc, char **argv)
12 if (argc != 2 && argc != 3) {
13 fprintf(stderr, "Usage: %s <URL> [update]\n", argv[0]);
17 url = pb_url_parse(NULL, argv[1]);
22 printf("%s\n", argv[1]);
25 printf("%s %s\n", argv[1], argv[2]);
26 url = pb_url_join(NULL, url, argv[2]);
29 printf("scheme\t%s\n", pb_url_scheme_name(url->scheme));
30 printf("host\t%s\n", url->host);
31 printf("port\t%s\n", url->port);
32 printf("path\t%s\n", url->path);
33 printf("dir\t%s\n", url->dir);
34 printf("file\t%s\n", url->file);