Aeliot-Tm / todo-registrar

This tool creates issues in Issue Tracker depends on your TODO-comments in php-code
MIT License
9 stars 1 forks source link

Don't work custom place/path of config #40

Closed Aeliot-Tm closed 1 month ago

Aeliot-Tm commented 1 month ago

Steps to reproduce:

  1. Move config to custom place
  2. Call script with option config
    vendor/bin/todo-registrar --config=scripts/todo-registrar/config.php

Actual result:

  1. Option with long name was obtained not properly.
  2. Relative path to config was not used properly.
  3. And finally, an exception is thrown.
Fatal error: Uncaught RuntimeException: Config file "" does not exist in /[MASKED]/vendor/aeliot/todo-registrar/bin/todo-registrar:74
Stack trace:
#0 /[MASKED]/vendor/bin/todo-registrar(119): include()
#1 {main}
  thrown in /[MASKED]/vendor/aeliot/todo-registrar/bin/todo-registrar on line 74

Expected result: Script called successfully