args

argv and argc for command line arguments

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.3.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:26

Tags

Authors

  • Threatfender, LLC

Installation

nimble install args
choosenim install args
git clone https://github.com/threatfender/args

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
args - - - - - - -

Dependencies

Package Version Optional
nim >= 1.4.0 No

Source

Repository https://github.com/threatfender/args
Homepage https://github.com/threatfender/args
Registry Source nimble_official

README

Args

A very tiny library which provides the functions argv and argc for working with command line arguments in Nim, with support for multiple Nim versions.

Install

$ nimble add args

Example

import args

when isMainModule:
  echo "total argument count: ", argc
  echo "script name: ", argv[0]

  if argc > 1:
    echo "script args: ", argv[1..^1]

Development

To run tests:

$ nimble test

License

Args is open source software licensed under the MIT License.