[bugfix] Terminate script if mandatory options aren't given
[bugfix] Terminate script if mandatory options aren't given

Bug: T220261
Change-Id: I84c5c0966177a7430359b102cdb333a865bbb6f7

wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core