Skip to content

Commit

Permalink
add pbool as a shortcut for poptions [false,true]
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Aug 2, 2019
1 parent ef6d45f commit cd0ce75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/params/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export function poptions(name: string, values: ParamArgument[]): POptions {
return new POptions(name, values);
}

export function pbool(name: string): POptions {
return new POptions(name, [false, true]);
}

class POptions implements ParamSpecIterable {
private name: string;
private values: ParamArgument[];
Expand Down

0 comments on commit cd0ce75

Please sign in to comment.