home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!network.ucsd.edu!scubed!scubed.com!stevens
- From: stevens@scubed.com (Jeff Stevens)
- Subject: Re: Disappearing command line arguments
- Message-ID: <1992Aug27.162750.16114@scubed.com>
- Sender: usenet@scubed.com (USENET News System)
- Nntp-Posting-Host: s3mars
- Organization: S-CUBED, A Division of Maxwell Laboratories
- References: <1992Aug27.035954.16698@scubed.com>
- Distribution: na
- Date: Thu, 27 Aug 1992 16:27:50 GMT
- Lines: 24
-
- In article <1992Aug27.035954.16698@scubed.com>, stevens@scubed.com (Jeff Stevens) writes:
- |> XtInitialize (and variants) removes all Xt command line arguments
- |> from the command line list argv and reduces argc accordingly. However,
- |> it also removes a "-d" flag, and sometimes removes a "-t" flag. "-d"
- |> appears to be equivalent to "-display". These are not documented toolkit
- |> options, and I can't find any reference to them in the X source code.
- |>
- |> Is this a bug or a feature? Where and why are these arguments removed?
- |> Are there any other undocumented flags extracted by the X initialization
- |> routines? Why is "-t" removed sometimes and sometimes not? This is causing
- |> problems, since we use "-t" for another purpose.
-
- Thanks to the people who responded so quickly to the above question. I had
- not realized that any unique abbreviation of an option flag would be interpreted
- as the option flag. This seems like a dangerous feature, since it means that
- if the command line is parsed by the application other than by the resource
- manager, application flags must be distinct not only from the standard toolkit
- flags, but also from any unique abbreviation of these flags or any application
- supplied flags. The only safe solution to this problem is to explicitly
- reference each flag in the application defined options table.
-
- --
- ----------------------------------------------------------
- Jeff Stevens stevens@s3mars.scubed.com, stevens@seismo.css.gov
-