// simple helper function to know if the script is run // in the context of a completion command. Also mapping the // special `<pkgname> completion` cmd.