Spaces:
Sleeping
Sleeping
Download src/first_agent/cli.py from MoudClam/First_agent: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/MoudClam/First_agent/resolve/main/src/first_agent/cli.py
- Command line
-
hf download hf://spaces/MoudClam/First_agent/src/first_agent/cli.py
-
curl -L -o cli.py https://huggingface.co/spaces/MoudClam/First_agent/resolve/main/src/first_agent/cli.py
309 Bytes
| import argparse | |
| def main(argv=None) -> int: | |
| parser = argparse.ArgumentParser(prog="first-agent") | |
| parser.add_argument("--version", action="store_true") | |
| args = parser.parse_args(argv) | |
| if args.version: | |
| print("first-agent 0.1.0") | |
| return 0 | |
| parser.print_help() | |
| return 0 | |