Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CLIG(1)			      Programmer's Manual		       CLIG(1)

NAME
       ::clig::Commandline - declare variable to store concatenated argv

SYNOPSIS
       package require clig
       namespace import	::clig::*
       setSpec db

       Commandline varname

DESCRIPTION
       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::parseCmd-
       line, although in contrast to C it is rather useless in Tcl.

SEE ALSO
       clig_Rest(n),  clig_Flag(n),  clig_Double(n),  clig_Float(n), clig_Ver-
       sion(n),	 clig_Usage(n),	 clig_Name(n),	 clig_Int(n),	clig_parseCmd-
       line(n),	clig_Long(n), clig_String(n), clig(1), clig_Description(n)

Kir				   1.9.11.1			       CLIG(1)

NAME | SYNOPSIS | DESCRIPTION | BUG | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=clig_Commandline&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help