Skip to content

Commit b80f6fd

Browse files
authored
Merge pull request #35 from redjax/patch/platform-lib-main
Add __main__.py to platform-lib
2 parents 150f67d + b521479 commit b80f6fd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from __future__ import annotations
2+
3+
import logging
4+
5+
from platform_lib.helpers import _set_logging_level, parse_args
6+
from platform_lib.main import main
7+
8+
log = logging.getLogger(__name__)
9+
10+
if __name__ == "__main__":
11+
args = parse_args()
12+
13+
_set_logging_level(verbosity=args.verbosity, set_debug=args.debug)
14+
15+
main(options=args)

0 commit comments

Comments
 (0)