BSD Ports

devel/argc 1.22.0_2 DragonFly

Easily parse command line arguments in bash

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20, MIT
Categories
devel
Package size
361.1 KiB, 992.7 KiB installed

Description

argc allows to easily parse command line arguments in bash.

To write a command-line program with argc, we only need to do two things:

  1. Describe options, flags, positional parameters and subcommands in comments.
  2. Insert `eval $(argc "$0" "$@")` into script to let argc to parse command line arguments.

In the other systems

SystemPortVersion
DragonFlydevel/argc1.22.0_2
FreeBSDdevel/argc1.24.0_4
HardenedBSDdevel/argc1.24.0_3
GhostBSDdevel/argc1.24.0_3

Install

Binary package:

pkg install argc

From DPorts:

cd /usr/dports/devel/argc && make install clean

Dependencies

No port depends on this one.