ONE - On-device Neural Engine
Loading...
Searching...
No Matches
arser::Helper Class Reference

#include <arser.h>

Static Public Member Functions

static void add_version (Arser &arser, const std::function< void(void)> &func)
 
static void add_verbose (Arser &arser)
 

Detailed Description

Definition at line 752 of file arser.h.

Member Function Documentation

◆ add_verbose()

static void arser::Helper::add_verbose ( Arser arser)
inlinestatic

Definition at line 765 of file arser.h.

766 {
767 arser.add_argument("-V", "--verbose")
768 .nargs(0)
769 .required(false)
770 .default_value(false)
771 .help("output additional information to stdout or stderr");
772 }
Definition arser.h:39

Referenced by entry(), and entry().

◆ add_version()

static void arser::Helper::add_version ( Arser arser,
const std::function< void(void)> &  func 
)
inlinestatic

Definition at line 755 of file arser.h.

756 {
757 arser.add_argument("--version")
758 .nargs(0)
759 .required(false)
760 .default_value(false)
761 .help("Show version information and exit")
762 .exit_with(func);
763 }

Referenced by entry(), and entry().


The documentation for this class was generated from the following file: