Lucretiel / autocommand

Autocommand turns a python function into a CLI program
GNU Lesser General Public License v3.0
52 stars 9 forks source link

Make `@autocommand()` module argument optional #37

Open bswck opened 5 months ago

bswck commented 5 months ago

Since @autocommand() decorates functions, we can assume that no module argument => module = func.__module__. This allows to reduce the boilerplate of having to specify __name__ repeatedly everywhere.