cleanup: removed default arg for cli

This commit is contained in:
DSK 2021-10-03 12:55:24 +05:30
parent 9b233f49e5
commit ca4471426a
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ from rich.columns import Columns
from rich import print
def display_calendar(year=None):
def display_calendar(year):
today = datetime.today()
year = int(year or today.year)
year = int(year)
cal = calendar.Calendar()
tables = []
@ -50,7 +50,7 @@ def display_calendar(year=None):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Rich calendar")
parser.add_argument("year", metavar="year", type=int, default=None)
parser.add_argument("year", metavar="year", type=int)
args = parser.parse_args()
display_calendar(args.year)