#548 closed defect (invalid)
psArgumentRemove
| Reported by: | 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 , 21 years ago
comment:2 by , 21 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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.