Skip to content

Commit 0ce3e4a

Browse files
committed
refactor: update src dir
1 parent 4d645ae commit 0ce3e4a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Inspired by mri, 1.2.0, MIT License, https://github.com/lukeed/mri
2-
// Rewritten and adapted to @hypernym/args, 0.3.0, MIT License, https://github.com/hypernym-studio/args
3-
41
import { isString, isArray, isFlag, isAlias } from './utils'
52
import type { Defaults, Args, Options } from './types'
63

@@ -34,7 +31,7 @@ export function createArgs<T = Defaults>({
3431
const excludes = ['--', '-', ...(exclude || [])]
3532
argv = argv.filter((arg) => !excludes.includes(arg))
3633

37-
function setArg(arg: string, index: number) {
34+
const setArg = (arg: string, index: number) => {
3835
let value: boolean | string = true
3936
let argKey: string = isFlag(arg) ? arg.slice(2) : arg.slice(1)
4037
let argValue: string

src/types/index.ts src/types.ts

File renamed without changes.

0 commit comments

Comments
 (0)