joemfb / mlpm

a MarkLogic package manager
5 stars 2 forks source link

Running mlpm without args returns the mlpm script #15

Open grtjn opened 6 years ago

grtjn commented 6 years ago

Or something like:

 $0=mlpm, getContext=function () {
    return context
  }, reset=function (aliases) {
    context.resets++
    aliases = aliases || {}
    options = options || {}
    // put yargs back into an initial state, this
    // logic is used to build a nested command
    // hierarchy.
    var tmpOptions = {}
    tmpOptions.global = options.global ? options.global : []

etc..

Adding something as small as -v works just fine..