File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616
1717# Setting variables
1818cal_month , cal_year = None , None
19- program_version = "4.0.1 "
19+ program_version = "4.0.2 "
2020
2121if args .month :
2222 if len (args .month ) > 1 :
23- print (f"{ os .path .basename (__file__ )} : error: argument -m/--month: too many arguments: 1 expected but given { len (args .month )} " )
23+ print (f"{ os .path .basename (sys . argv [ 0 ] )} : error: argument -m/--month: too many arguments: 1 expected but given { len (args .month )} " )
2424 sys .exit ()
2525 else :
2626 month_string = args .month [0 ]
3333 except :
3434 print (
3535 "Enter appropriate month number or 3-letter/full name!" ,
36- f"{ os .path .basename (__file__ )} : error: argument -m/--month: invalid entry: '{ month_string } '" ,
36+ f"{ os .path .basename (sys . argv [ 0 ] )} : error: argument -m/--month: invalid entry: '{ month_string } '" ,
3737 sep = '\n '
3838 )
3939 sys .exit ()
4242
4343if args .year :
4444 if len (args .year ) > 1 :
45- print (f"{ os .path .basename (__file__ )} : error: argument -y/--year: too many arguments: 1 expected but given { len (args .year )} " )
45+ print (f"{ os .path .basename (sys . argv [ 0 ] )} : error: argument -y/--year: too many arguments: 1 expected but given { len (args .year )} " )
4646 sys .exit ()
4747 else :
4848 cal_year = args .year [0 ]
You can’t perform that action at this time.
0 commit comments