Development status: proposal
nclf-python is an implementation of the New Command Line Format (NCLF) in python.
Currently this implementation is Python 2 only.
import sys
from nclf import nclf
args = nclf(sys.argv[1:])
print(args)
nclf(args)
Arguments:
args
- command line arguments such assys.argv[1:]
Decode NCLF arguments and return array of two elements representing NCLF (see NCLF specification for details).
nclf [arg...]
nclf
is a command line program which decodes its NCLF command line arguments
and prints them as JSON to standard output.
as_s [arg...]
as_s is a command line program which prints its arguments to standard output
as JSON strings separated by space. The only non-alphanumeric characters in the
output are "
,
and \
.
- Install with pip:
pip install nclf
- or use the file
nclf.py
directly in your program, - or use the code in
nclf.py
directly in your program.
- Add boolean named arguments.
- Add literal strings following
=
. - Add support for binary string values.
- Add as_s.
- Change decoding of string arguments.
- Initial release (beta).