IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#548 closed defect (invalid)

psArgumentRemove

Reported by: David.Robbins@… Owned by: Paul Price
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

psArgumentRemove uses an int argnum to remove an argument from the argument
list. Since the input of these functions uses a space between the type of input
and the input value, the current implementation seems rather incovenient and
clumsy to us. In order to remove an item from the argument list, you would have
to call psArgumentRemove twice or else Parse should error from incorrect input
parameters. Perhaps what should be done is to do the remove similar to the get,
by matching a string. Ie, if "-string" is found, and the following argument is
the value (has no "-"), then both should be removed.

Change History (2)

comment:1 by Paul Price, 21 years ago

The problem with that approach is that different switches require different
numbers of arguments. So one could write a wrapper that removes the switch and
arguments, but one still needs this function. We've got a wrapper function in
psArgumentParse. So I think we've got everything we need.

comment:2 by David.Robbins@…, 21 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.