No description
Find a file
2025-02-02 20:24:23 +02:00
src Export argv and argc as module-level immutable variables 2025-02-02 20:13:54 +02:00
args.nimble Export argv and argc as module-level immutable variables 2025-02-02 20:13:54 +02:00
CHANGELOG.md Export argv and argc as module-level immutable variables 2025-02-02 20:13:54 +02:00
LICENSE.md Initial public commit 2025-02-02 01:04:34 +02:00
README.md Fix example 2025-02-02 20:24:23 +02:00

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.