Skip to content

threatfender/args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

argc and argv for Nim

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages