octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60886] Command line option '--gui' ignored wh


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60886] Command line option '--gui' ignored when used together with '--path'
Date: Wed, 21 Jul 2021 14:22:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #11, bug #60886 (project octave):

OK, yes, I don't think we need to match 0.  The docs say it returns -1 if no
more options are available (there may still be non-option arguments) and '?'
if an unrecognized option character or a missing option argument is found.

As I remember, the original intent of the option handling in main.cc was to do
minimal processing, detect errors that would make it impossible for the
wrapper program to decide what to do, but otherwise pass the arguments on to
the real program (octave-cli or octave-gui) even if there were some arguments
that didn't make sense.  But now maybe getopt in main.cc could be detecting
other errors?  If so, I guess we need to decide whether to handle the errors
in the wrapper program and octave-{gui,cli} or try to fix the wrapper program
to ignore getopt errors and just pass the options on to octave-{gui,cli}.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60886>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]