Skip to content

Commit be4fe7c

Browse files
committed
add jsdoc
1 parent b979e36 commit be4fe7c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nin0/cmd",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"license": "GPL-3.0-only",
55
"exports": "./src/main.ts"
66
}

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ type Args = {
22
[name: string]: string | true;
33
};
44

5+
/**
6+
*
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+
*/
511
export function parseArgs(
612
command: string,
713
options: {

0 commit comments

Comments
 (0)