We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b979e36 commit be4fe7cCopy full SHA for be4fe7c
2 files changed
jsr.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@nin0/cmd",
3
- "version": "1.0.1",
+ "version": "1.0.2",
4
"license": "GPL-3.0-only",
5
"exports": "./src/main.ts"
6
}
src/main.ts
@@ -2,6 +2,12 @@ type Args = {
[name: string]: string | true;
};
+/**
+ *
7
+ * @param command The raw command string.
8
+ * @param options The command prefix, and the positional arg's name.
9
+ * @returns The command name and all used arguments.
10
+ */
11
export function parseArgs(
12
command: string,
13
options: {
0 commit comments