isrequired: extract flag information from parser or argument

Description Usage Arguments Value

Description

this method provides a way indicate whether an argument is a flag. A flag argument is an argument indicating whether something is true or false.

Usage

1

Arguments

x

object to extract flag information from.

Value

if x is an cmd_arg object, true if the object is a flag argument otherwise false. If x is an cmd_parser object then a named logical vector indicating which arguments are flags and which are not.


Bijaelo/cmdline.arguments documentation built on June 12, 2021, 1:42 p.m.