Skip to content

KylePiira/Getarg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Getarg

A python module for easily getting command line arguments.

Instructions

To use the module in your own code simply:

import getarg

Then call:

getarg.get('parameter')

or

getarg.getposition(POSITION_INT)

Example

Create a file with the following code:

import getarg
fileName = getarg.get('filename')
print('The file name is ' + fileName)

then run the script from the command line:

python scripy.py filename="MyFile.txt"

you should get the following output:

The file name is MyFile.txt

About

A python module for easily getting command line arguments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages