feat: parsing arg stuffs
This commit is contained in:
19
main.py
19
main.py
@@ -1,8 +1,25 @@
|
|||||||
"""Main entry point for Skywipe"""
|
"""Main entry point for Skywipe"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
from skywipe.commands import *
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Hello from Skywipe!")
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Clean your bluesky account with style")
|
||||||
|
parser.add_argument(
|
||||||
|
"command",
|
||||||
|
choices=["all", "configure", "posts",
|
||||||
|
"medias", "likes", "reposts", "follows"],
|
||||||
|
help="Command to execute"
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.command == "configure":
|
||||||
|
run_configure()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user