Direct CLI entry point for view-vector command.
()
| 523 | |
| 524 | |
| 525 | def view_vector_cli(): |
| 526 | """Direct CLI entry point for view-vector command.""" |
| 527 | parser = argparse.ArgumentParser( |
| 528 | description="View a vector file interactively in the browser", |
| 529 | formatter_class=argparse.RawDescriptionHelpFormatter, |
| 530 | ) |
| 531 | parser.add_argument("file_path", help="Path or URL to the vector file") |
| 532 | parser.add_argument( |
| 533 | "--style", |
| 534 | default="dark-matter", |
| 535 | help="Map style (default: dark-matter). Options: dark-matter, positron, voyager, etc.", |
| 536 | ) |
| 537 | parser.add_argument( |
| 538 | "--no-browser", |
| 539 | action="store_true", |
| 540 | help="Don't open browser automatically", |
| 541 | ) |
| 542 | |
| 543 | args = parser.parse_args() |
| 544 | |
| 545 | view_vector( |
| 546 | file_path=args.file_path, |
| 547 | style=args.style, |
| 548 | open_browser=not args.no_browser, |
| 549 | ) |
| 550 | |
| 551 | |
| 552 | def main(): |
nothing calls this directly
no test coverage detected