making main less complex
This commit is contained in:
@@ -15,8 +15,8 @@ def create_parser():
|
||||
# Create the parser for the "add" command
|
||||
parser_add = subparsers.add_parser("add", help="Adding a new event.")
|
||||
parser_add.add_argument("name", help="Name of the event")
|
||||
parser_add.add_argument("-s", "--start", help="Start datetime (default now)")
|
||||
parser_add.add_argument("-e", "--end", help="End datetime")
|
||||
parser_add.add_argument("-s", "--start", required=True, help="Start datetime (default now)")
|
||||
parser_add.add_argument("-e", "--end", required=True, help="End datetime")
|
||||
|
||||
# Create the parser for the "start" command
|
||||
parser_start = subparsers.add_parser("start", help="Starting a new event.")
|
||||
|
||||
Reference in New Issue
Block a user