[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getopt
From: |
John W. Eaton |
Subject: |
Re: getopt |
Date: |
Sat, 10 Oct 2009 12:12:45 -0400 |
On 10-Oct-2009, Ben Abbott wrote:
| > If I try to write a function my_getopt, the testing of the options is
| > probably not so hard. But how I can reset argv, that it after the call
| > the call of my_getopt contains only the non option arguments, I have
| > no
| > idea.
| > Juergen
|
| I have no good idea how to handle that problem.
You would need to do something like
[opt_struct, remaining_args] = getopt (opt_string, varargin);
then proceed with processing the returned options structure and the
remaining arguments.
jwe
- getopt, Juergen Rose, 2009/10/10
- RE: getopt, dastew, 2009/10/10
- RE: getopt, Juergen Rose, 2009/10/10
- Re: getopt, Ben Abbott, 2009/10/10
- Re: getopt, Juergen Rose, 2009/10/10
- Re: getopt, Ben Abbott, 2009/10/10
- Re: getopt,
John W. Eaton <=
- Re: getopt, Juergen Rose, 2009/10/10
- Re: getopt, John W. Eaton, 2009/10/10
- Re: getopt, Judd Storrs, 2009/10/10
- Re: getopt, Juergen Rose, 2009/10/10
- Re: getopt, Judd Storrs, 2009/10/10
- Re: getopt, Juergen Rose, 2009/10/10
- Re: getopt, Jaroslav Hajek, 2009/10/10
- Re: getopt, Juergen Rose, 2009/10/10
- Re: getopt, Carlo de Falco, 2009/10/11
- Re: getopt, Martin Helm, 2009/10/10