var h=Object.defineProperty;var t=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var c=(e,n,a)=>n in e?h(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,m=(e,n)=>{for(var a in n||(n={}))p.call(n,a)&&c(e,a,n[a]);if(t)for(var a of t(n))d.call(n,a)&&c(e,a,n[a]);return e};var l=(e,n)=>{var a={};for(var i in e)p.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&t)for(var i of t(e))n.indexOf(i)<0&&d.call(e,i)&&(a[i]=e[i]);return a};function g(e){return`<${e}>`}function f(e){return Array.isArray(e)?e.at(-1):e}function r(i,{args:a}={args:"aliases"}){var s=i,{name:e}=s,n=l(s,["name"]);let o=f(e);return m({name:o,displayName:`${o}:${g(a)}`},n)}var u=[{name:"a/fn",description:"An alias to refer to its function or a qualified function",isOptional:!0},{name:"kvs",description:"A list of key-value arguments to merge with the exec-args",isVariadic:!0,optionsCanBreakVariadicArg:!1,isOptional:!0},{name:"kv-map",description:"Map to merge with the :exec-args map, taking precedence over kvs",isOptional:!0}],v={name:"clojure",description:"Use the Clojure tools to run Clojure programs on the JVM, start a REPL, or invoke a specific function with data",parserDirectives:{flagsArePosixNoncompliant:!0},options:[r({name:"-A",description:"Use concatenated aliases to modify classpath"}),r({name:"-X",args:u}),r({name:"-T",description:"Invoke tool by name or via aliases ala -X",args:u},{args:"name|aliases"}),r({name:"-M",description:"Use concatenated aliases to modify classpath or supply main opts",args:{name:"args",isVariadic:!0,isOptional:!0}}),{name:"-P",description:"Prepare deps - download libs, cache classpath, but don't exec"},{name:"-J",description:"Pass opt through in java_opts",displayName:"-J<opt>",insertValue:"-J{cursor}"},{name:"-Sdeps",description:"Pass the deps data on the command line",args:{name:"edn",description:"The deps data in edn"}},{name:"-Spath",description:"Compute classpath and echo to stdout only"},{name:"-Scp",description:"Use specified classpath instead of cached or computed one",args:{name:"cp",description:"The classpath to use"}},{name:"-Sdescribe",description:"Print environment and command parsing information as data"},{name:"-Sforce",description:"Ignore classpath cache and force recomputation"},{name:"-Spom",description:"Generate (or update) pom.xml with deps and paths"},{name:"-Srepro",description:"Ignore the ~/.clojure/deps.edn config file"},{name:"-Sthreads",description:"Set the number of threads to use when downloading dependencies"},{name:"-Strace",description:"Write a trace.edn file that traces deps expansion"},{name:"-Stree",description:"Print dependency tree"},{name:"-Sverbose",description:"Print all path locations"},{name:["-version","--version"],description:"Print the Clojure CLI version"},{name:["-i","--init"],description:"Load a file or resource",args:{name:"path"}},{name:["-e","--eval"],description:"Evaluate expressions in string; print non-nil values",args:{name:"string"}},{name:"--report",description:"Report uncaught exceptions",args:{name:"target",description:"Where to report",suggestions:["file","stderr","none"]}},{name:["-m","--main"],description:"Call the -main function from a namespace with args",args:[{name:"ns-name",description:"The namespace of the -main function",isScript:!0},{name:"args",description:"The arguments to pass to the -main function",isVariadic:!0}]},{name:["-r","--repl"],description:"Run a REPL"},{name:["-h","-?","--help"],description:"Show help for clojure"}]},y=v;export{y as default};
