This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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.

--- 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]"
@@ -148,6 +148,10 @@ Display licensing information
 Open MSDN reference for ShellExecute

+Interpret the rest of the command-line arguments as non-options
 Start Bash in a new window

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]