INNER CODE UNIT · Python
dir_path
infobyte/emploleaks · emploleaks.py:57
def dir_path(string):
if os.path.isdir(string):
return string
log.critical(f'{string} is not a valid directory')
parser_connect = cmd2.Cmd2ArgumentParser()
parser_connect.add_argument('--user',
required=True,
help="the database's user")
parser_connect.add_argument('--passwd',
required=True,
help='the folder of the leak')
parser_connect.add_argument('--dbname',
required=True,
help="the database's name")
parser_connect.add_argument('--host',
default="localhost",
help="the database's host")