File: dummy_command.py

package info (click to toggle)
backblaze-b2 3.19.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: python: 12,571; makefile: 21; sh: 12
file content (24 lines) | stat: -rwxr-xr-x 636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
######################################################################
#
# File: test/unit/_cli/fixtures/dummy_command.py
#
# Copyright 2024 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
import argparse


def main():
    parser = argparse.ArgumentParser(description="Dummy command")
    parser.add_argument("--foo", help="foo help")
    parser.add_argument("--bar", help="bar help")
    args = parser.parse_args()
    print(args.foo)
    print(args.bar)


if __name__ == "__main__":
    main()