Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ set of patterns established by the core Tcl commands, is terse and
readable to specify the arguments, and is fast enough to use in any
situation.

# INSTALLATION
Common note: make sure to clone the repository with the `--recurse-submodules` option in order to pull the `tclconfig` submodule.
## Linux
Make sure you have both `tcl` and `tcl-devel` packages installed.
```sh
autoreconf
# customize with the correct Tcl paths in your system
./configure --with-tcl=/usr/lib64 --with-tclinclude=/usr/include
# "make all" will generate documentation using pandoc
make
sudo make install
# or you can skip the documentation:
make binaries
sudo make install-binaries
```
## Windows
You can build the package using `nmake` in your MSVC shell. Customize INSTALLDIR to your Tcl location.
```cmd
cd parse_args\win
nmake /nologo /f makefile.vc INSTALLDIR=c:\software\ActiveTcl_8.6.12
nmake /nologo /f makefile.vc INSTALLDIR=c:\software\ActiveTcl_8.6.12 install
```
# COMMANDS

- **parse\_args::parse\_args** *args* *argspec*
Expand Down
3 changes: 1 addition & 2 deletions win/makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ PROJECT = parse_args
!include "rules-ext.vc"

PRJ_OBJS = $(TMP_DIR)\parse_args.obj

# PRJ_DEFINES = -D_CRT_SECURE_NO_WARNINGS
PRJ_DEFINES = -DTIP445_SHIM -D_CRT_SECURE_NO_WARNINGS

!include "$(_RULESDIR)\targets.vc"

Expand Down