diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /std/flags/mod.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/flags/mod.ts')
-rw-r--r-- | std/flags/mod.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/flags/mod.ts b/std/flags/mod.ts index a961e6c68..09b5afa8a 100644 --- a/std/flags/mod.ts +++ b/std/flags/mod.ts @@ -104,7 +104,7 @@ export function parse( stopEarly = false, string = [], unknown = (i: string): unknown => i, - }: ArgParsingOptions = {} + }: ArgParsingOptions = {}, ): Args { const flags: Flags = { bools: {}, @@ -191,7 +191,7 @@ export function parse( function setArg( key: string, val: unknown, - arg: string | undefined = undefined + arg: string | undefined = undefined, ): void { if (arg && flags.unknownFn && !argDefined(key, arg)) { if (flags.unknownFn(arg, key, val) === false) return; @@ -210,7 +210,7 @@ export function parse( function aliasIsBoolean(key: string): boolean { return getForce(aliases, key).some( - (x) => typeof get(flags.bools, x) === "boolean" + (x) => typeof get(flags.bools, x) === "boolean", ); } |