Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
/ args Public archive

A simple (KISS) Janet module for command line argument parsing

License

Notifications You must be signed in to change notification settings

MorganPeterson/args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE

I am moving this repository to Sourcehut and this repository will be archived. Any future development (if any) will be done in the new repository.

Args

Args is a simple (44 sloc) pure Janet module for parsing command line flags.

Unlike argparse and it's ilk, this module only parses flags without arguments.

install

Use JPM

sudo jpm install https://github.com/MorganPeterson/args.git

examples

Run simple.janet script for an example of usage.

janet simple.janet -a -b -cd -x --help

The above should produce the following output:

A flag found
B flag found
C flag found
D flag found
don't recognize flag x
help message

About

A simple (KISS) Janet module for command line argument parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages