File size: 309 Bytes
96b8af3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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