robbielyman / seamstress

seamstress is an art engine
GNU General Public License v3.0
129 stars 12 forks source link

check for extension of specified script #41

Closed tehn closed 1 year ago

tehn commented 1 year ago

when using the -s option i commonly use tab completion for the file, which adds the extension. -s assumes no extension, so tab completion means "not found: myscript.lua.lua"

perhaps checking for an extension prior to adding .lua would be sufficient

side proposal: i'd expect that specifying the file is the most common arg, so maybe if no arg type is specified it'd just assume the arg is a filename? ie seamstress myscript.lua