This repository has been archived on 2022-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
it-volunteers-for-peace/manage_db.py
2022-09-16 07:48:10 +02:00

43 lines
1,023 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from loguru import logger
import pretty_errors
import argparse
from argparse import ArgumentParser
def lmao():
print("lmao")
def init_argparser() -> ArgumentParser:
argparser = argparse.ArgumentParser(
description="List fish in aquarium.",
argument_default=argparse.SUPPRESS
)
argparser.add_argument(
"--init", "-i",
help="Инициализирует базу данных",
type=str,
)
argparser.add_argument(
"--make-adm", "-m",
help="Делает пользователя админом",
type=str,
)
argparser.add_argument(
"--del-adm", "-d",
help="Забирает права админа у пользователя",
type=str,
)
argparser.add_argument(
"--delete-db",
help="Снести базу данных",
action="lmao"
)
return argparser
if __name__ == '__main__':
argparser = init_argparser()
args = vars(argparser.parse_args())