Overview

Packages

  • LegiScan
    • API
    • Cache
    • Common
    • Exceptions
    • Utility
  • PHP

Functions

  • expect_user
  • is_cli
  • legiscan_getopt
  • legiscan_help
  • legiscan_option
  • memory_usage
  • prettyPrint
  • sec2hms
  • timer_clear
  • timer_read
  • timer_start
  • timer_stop
  • yes_no_prompt
  • Overview
  • Package
  • Function

Function legiscan_getopt

Wrapper around getopt() that also strips recognized options from $argv

Package: LegiScan\Common
Located at common.php
Parameters summary
array $valid_options = array() An array of long options that are valid
string $extra = '' Additional text that will be added to --help output
Return value summary
array The parsed options and command arguments
LegiScan API Client API documentation generated by ApiGen