I'm not sure there's much you can do here, but I've set up sub and created a javascript subcommand. To get automatic documentation and opt-in autocomplete, I had to make weird comments like
/*
# Usage: blah
*/
/*
# Provide sn completions
*/
because the comment syntax (#) is hard-coded. I realize this isn't a simple fix, but I thought I'd bring it up anyway.
Ideally, the language's comment syntax would be used so in javascript, I could just write:
/*
Usage: blah
*/
// Provide sub completions