Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.flags.Flag

Sync posts from Mastodon into FeoBlog
Go to Latest
variable args.flags.Flag
import { args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { Flag } = args.flags;

Declare a binary flag:

  • value is true if the flag is found in argument list once or multiple times
  • value is false if the flag isn't found in argument list

type

<Name extends string>(name: Name, descriptor?: FlagDescriptor) => FlagType<Name, boolean>