@@ -61,7 +61,7 @@ def read_arguments(self):
6161 action = "store_true" )
6262 parser .add_argument ("-s" , "--start" , help = "Starts one loop" ,
6363 action = "store_true" )
64- parser .add_argument ("--send" , help = "Sends Chapter directly by chapter ID. Multiple IDs can be given" , nargs = '*' ,)
64+ parser .add_argument ("--send" , help = "Sends Chapter directly by chapter ID. Multiple IDs can be given" , default = [], nargs = '*' ,)
6565 parser .add_argument ("--convert" , help = "Converts Chapter directly by chapter ID. Multiple IDs can be given" , default = [], nargs = '*' ,)
6666 parser .add_argument ("--download" , help = "Downloads Chapter directly by chapter ID. Multiple IDs can be given" , default = [], nargs = '*' ,)
6767 parser .add_argument ("-a" , "--action" , help = "Start action. Options are: rssparser (collecting feed data), downloader, converter or sender " )
@@ -94,9 +94,6 @@ def read_arguments(self):
9494 and self .args .delete_user is None \
9595 and self .args .switch_chapter is None \
9696 and self .args .switch_send is None \
97- and self .args .send is None \
98- and self .args .download is None \
99- and self .args .convert is None \
10097 and self .args .add_user is False \
10198 and not any ([self .args .add_user ,
10299 self .args .create_db ,
@@ -105,6 +102,9 @@ def read_arguments(self):
105102 self .args .list_chapters_all ,
106103 self .args .list_feeds ,
107104 self .args .list_users ,
105+ self .args .download ,
106+ self .args .convert ,
107+ self .args .send ,
108108 self .args .start ,]):
109109 logging .error ("At least one argument is required!" )
110110
0 commit comments