Can't figure out how to pass command arguments via cygstart

Igor Pechtchanski pechtcha@cs.nyu.edu
Fri Sep 20 09:15:00 GMT 2002


On Fri, 20 Sep 2002, Andre Srinivasan wrote:

> ...
> AS> Works for me.  Add it to the man page and we'll call it a feature.
>
> IP> It already IS a feature.  The getopt function will stop processing
> IP> switches when it encounters the '--' option.
>
> You know that and I know that (now).  I was just suggesting that
> adding this to the man page will eliminate these kinds of questions.
>                                                                 -andre.

Agreed.  Below is a minimal patch against cygutils-1.1.2, feel free to
expand on it.
	Igor

================================================================
--- src/cygstart/cygstart.1-orig        2002-03-16 00:49:43.000000000 -0500
+++ src/cygstart/cygstart.1     2002-09-20 11:58:29.000000000 -0400
@@ -15,7 +15,7 @@ cygstart \- start a program or open a fi
 .RB "[\-\-\fBshowminimized\fP] [\-\-\fBshowminnoactive\fP]"
 .RB "[\-\-\fBshowna\fP] [\-\-\fBshownoactivate\fP]"
 .RB "[\-\-\fBshownormal\fP] [\-\-\fBusage\fP] [\-\-\fBversion\fP]"
-.RB "[\-\-\fBlicense\fP] [\-\-\fBreference\fP]"
+.RB "[\-\-\fBlicense\fP] [\-\-\fBreference\fP] [\-\-]"
 .RB "\fIfile\fP [\fIarguments\fP]"
 .br
 .\"}}}
@@ -148,6 +148,10 @@ Display licensing information
 \fB\-\-reference\fP
 Open MSDN reference for ShellExecute

+.TP
+\fB\-\-\fP
+Interpret the rest of the command-line arguments as non-options
+
 .SH EXAMPLES
 Start Bash in a new window
 .PP
================================================================

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list