IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7206


Ignore:
Timestamp:
May 25, 2006, 10:52:35 AM (20 years ago)
Author:
Paul Price
Message:

Changing psArgumentParse description to allow arguments to be
specified multiple times (-arg 1 -arg 2) as well as multiple
parameters to an argument (-arg 1 2 3).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r7165 r7206  
    1 %%% $Id: psLibSDRS.tex,v 1.393 2006-05-22 22:52:44 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.394 2006-05-25 20:52:35 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    17701770the appropriate type).  As matching arguments are found on the command
    17711771line, the values shall be read into the \code{arguments} metadata,
    1772 with the appropriate type.  Multiple values (i.e., when an argument
    1773 takes two or more values) are specified using a
     1772with the appropriate type.
     1773
     1774An argument may be specified multiple times on the command line (e.g.,
     1775\code{-arg 1 -arg 2}) if the argument is specified using a
    17741776\code{PS_DATA_METADATA_MULTI} list (i.e., by specifying a type with
    1775 the \code{PS_META_DUPLICATE_OK} flag).  A boolean argument shall be
    1776 set to \code{true} by the presence of the argument itself (no value is
    1777 specified).  The arguments and their values shall be removed from the
    1778 list of command line arguments as they are processed.  The function
    1779 shall return \code{false} without modifying the \code{arguments} if
    1780 any argument (i.e., a string beginning with a dash; but not a string
    1781 that does not start with a dash, which is likely a mandatory argument
    1782 for the program; the purpose of this requirement is so that the
    1783 default values are preserved) was encountered that is not present in
    1784 the \code{arguments}.
     1777the \code{PS_META_DUPLICATE_OK} flag on creation of the
     1778\code{arguments}).  An argument may take more than one parameter
     1779(e.g., \code{-arg 1 2 3}) by adding a \code{psMetadata} to the
     1780\code{arguments}, containing an entry for each of the parameters.  A
     1781boolean argument shall be set to \code{true} by the presence of the
     1782argument itself (no value is specified).  The arguments and their
     1783values shall be removed from the list of command line arguments as
     1784they are processed.  The function shall return \code{false} without
     1785modifying the \code{arguments} if any argument (i.e., a string
     1786beginning with a dash; but not a string that does not start with a
     1787dash, which is likely a mandatory argument for the program; the
     1788purpose of this requirement is so that the default values are
     1789preserved) was encountered that is not present in the
     1790\code{arguments}.
    17851791
    17861792\begin{prototype}
Note: See TracChangeset for help on using the changeset viewer.