clig_Commandline(7)

clig_Commandline7

Declare variable to store concatenated argv

Usage

package require clig
namespace import ::clig::*
setSpec db
Commandline varname

Overview

The command Commandline records in the database db specified in the most recent call to setSpec the name varname of a variable to be set the concatenated elements of the command line by a clig-parser.

Example

With a declaration like

  Commandline tool

a C-program calling

   Cmdline *cmd = parseCmdline(argc, argv);

will find in cmd->tool all elements of argv joined into one string with intervening blanks.

Bug

This even works with the command line parser for Tcl, ::clig::parseCmdline, although in contrast to C it is rather useless in Tcl.

Releases

4 releases since Debian 3.0 (Woody); the text changed 3 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0

From clig 1.9.11.1-3 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.