| 510 | } |
| 511 | |
| 512 | int |
| 513 | main (int argc, char **argv) |
| 514 | { |
| 515 | int c; |
| 516 | bool ok; |
| 517 | bool make_backups = false; |
| 518 | char const *backup_suffix = NULL; |
| 519 | char *version_control_string = NULL; |
| 520 | char const *target_directory = NULL; |
| 521 | int destdir_fd; |
| 522 | bool no_target_directory = false; |
| 523 | int n_files; |
| 524 | char **file; |
| 525 | int link_errno = -1; |
| 526 | |
| 527 | initialize_main (&argc, &argv); |
| 528 | set_program_name (argv[0]); |
| 529 | setlocale (LC_ALL, ""); |
| 530 | bindtextdomain (PACKAGE, LOCALEDIR); |
| 531 | textdomain (PACKAGE); |
| 532 | |
| 533 | atexit (close_stdin); |
| 534 | |
| 535 | while ((c = getopt_long (argc, argv, "bdfinrst:vFLPS:T", |
| 536 | long_options, NULL)) |
| 537 | != -1) |
| 538 | { |
| 539 | switch (c) |
| 540 | { |
| 541 | case 'b': |
| 542 | make_backups = true; |
| 543 | if (optarg) |
| 544 | version_control_string = optarg; |
| 545 | break; |
| 546 | case 'd': |
| 547 | case 'F': |
| 548 | hard_dir_link = true; |
| 549 | break; |
| 550 | case 'f': |
| 551 | remove_existing_files = true; |
| 552 | interactive = false; |
| 553 | break; |
| 554 | case 'i': |
| 555 | remove_existing_files = false; |
| 556 | interactive = true; |
| 557 | break; |
| 558 | case 'L': |
| 559 | logical = true; |
| 560 | break; |
| 561 | case 'n': |
| 562 | dereference_dest_dir_symlinks = false; |
| 563 | break; |
| 564 | case 'P': |
| 565 | logical = false; |
| 566 | break; |
| 567 | case 'r': |
| 568 | relative = true; |
| 569 | break; |
nothing calls this directly
no test coverage detected