GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wynlang/args

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
wyn.toml
wyn.toml
 
 

Repository files navigation

args - Official Wyn Package

CLI argument parser. Pure Wyn.

Install

wyn pkg install github.com/wynlang/args

Usage

import args

// Reads the real process arguments (System.args()):
var verbose = args.flag("--verbose")   // bool
var port = args.value("--port")        // string, "" if absent

Public API:

  • flag(name) -> bool — is name present on the command line?
  • value(name) -> string — the token after name, or "".
  • flag_in(argv_str, name) / value_in(argv_str, name) — the pure, testable core over a space-delimited argv string (Wyn arrays can't cross a module boundary, so the public surface takes strings).
  • argv_string() -> string — System.args() joined by spaces.

Note: System.args() only carries CLI arguments in a built binary (wyn build app.wyn then ./app --flag); it is not populated when a script is launched via wyn run.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.