| 5 | |
| 6 | |
| 7 | def parse_args(): |
| 8 | parser = argparse.ArgumentParser(description="AutoPack CLI tool") |
| 9 | |
| 10 | subparsers = parser.add_subparsers(dest="command") |
| 11 | install_parser = subparsers.add_parser("install", help="Install a pack") |
| 12 | install_parser.add_argument("pack", help="ID of the pack to install") |
| 13 | |
| 14 | search_parser = subparsers.add_parser("search", help="Search for packs") |
| 15 | search_parser.add_argument("query", help="The search query") |
| 16 | |
| 17 | parser.add_argument( |
| 18 | "-f", |
| 19 | "--force", |
| 20 | help="Force automatic dependency installation", |
| 21 | action="store_true", |
| 22 | ) |
| 23 | |
| 24 | return parser.parse_args() |
| 25 | |
| 26 | |
| 27 | def main(): |