Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs authored Apr 1, 2024
1 parent d9013b2 commit 2babfbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

[![DOCS][docs-img]][docs-url] [![CI][CI-img]][CI-url] [![CODECOV][codecov-img]][codecov-url]

A hackable, single-file, 355-line Julia package for command-line argument parsing. `SimpleArgParse` offers 95% of the functionality of `ArgParse` using ~10% of the lines-of-code (LOC).
A hackable, single-file, 350-line Julia package for command-line argument parsing. `SimpleArgParse` offers 95% of the functionality of `ArgParse` using ~10% of the lines-of-code (LOC).

Does this need to be more complicated?

## Motivation

Parsing command-line arguments should not be complicated. Metaprogramming features such as macros and generators, while cool, are overkill. I wanted a simple command-line argument parsing library in the spirit of Python's [`argparse`](https://docs.python.org/3/library/argparse.html), but could not find one. The closest thing I found was [`ArgParse`](https://www.juliapackages.com/p/argparse), but I desired something even simpler. There's nothing worse than having to security audit a massive package for a simple task.

Here it is, a single, simple, 320-line file with one dependency (`OrderedCollections::OrderedDict`), a single nested data structure, and a few methods. Hack on it, build on it, and use it for your own projects. You can read all of the source code in around one minute.
Here it is, a single, simple file with one dependency (`OrderedCollections::OrderedDict`), a single nested data structure, and a few methods. Hack on it, build on it, and use it for your own projects. You can read all of the source code in around one minute.

Enjoy! :sunglasses:

Expand Down

0 comments on commit 2babfbb

Please sign in to comment.