Docstring
This commit is contained in:
parent
5459916e15
commit
70b5b5498f
6
users.py
Normal file → Executable file
6
users.py
Normal file → Executable file
|
@ -6,6 +6,12 @@ import sqlite3
|
|||
|
||||
|
||||
def parse_command_line():
|
||||
"""Parse command line arguments.
|
||||
Add new user:
|
||||
./users.py -u <USERNAME> [-p <PASSWORD>]
|
||||
Delete user:
|
||||
./users.py -u <USERNAME> --delete
|
||||
"""
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-u", "--user",
|
||||
help="User name")
|
||||
|
|
Loading…
Reference in New Issue
Block a user