hugapi / hug

Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
MIT License
6.86k stars 388 forks source link

Bug: dashed versions of valid command line arguments fail silently #886

Closed KyleKing closed 11 months ago

KyleKing commented 3 years ago

Working with pdocs, I attempted to specify a template directory with --template-dir, but it wasn't working (https://github.com/timothycrosley/pdocs/issues/9#issuecomment-855291234). Tracing through the code, I realized that it needed --template_dir

Would it be possible for Hug to raise an exception on unparsed args or to print a warning that an argument wasn't specified?

Related to #718, which asked for support for dashed commands