Re: Command Line Options

2000-08-22 Thread Garry R. Osgood

"Guillermo S. Romero / Familia Romero" wrote:

 [EMAIL PROTECTED] (2000-08-21 at 1913.32 -0400):
   * Add "-v" as synonym for "--verbose"
   * Remove "-v" as synonyn for "--version"
   * Add "-V" as synonym for "--version"
  I'd keep -v = --version and add -V = --verbose.
  This, out of respect for backward compatibility for
  any version checking automata.

 Yes, but Gimp is doing it inverse that everyone I have seen. I would
 preffer -v verbose, and -V version, to match other software.

 GSR


perl -v
gcc -v

Neither are lightly used tools. They establish certain habits in
their own right.

Miles O'Neill observed.

 I almost did this when I revamped the command line options
 a year or so ago.  I didn't for the "backwards compatibility"
 reasons.  With much wider distribution of the GIMP now, I
 wish I'd done it then.

 I vote to change it.

Odd decision to come to, "With much wider distribution of the GIMP now..."
the likelihood of dependence on the current command line options is greater not less.

If it were only my own self-absorbed preferences in play, I'd agree with
the forum. Given the wide distribution of Gimp, I'm uncharacteristically
conservative. The only argument I find to counter such conservatism arises
from the fact that Gimp 1.1.xx is still an "unstable development series," so
one could legally say "you've been warned" to all the automation writers.

But as a pragmatic matter, possibly an unfriendly thing to do.

If the quorum is for a change, it should be done now, before a 1.2 release.

My two U. S. cents

Garry




Re: Command Line Options

2000-08-22 Thread Marc Lehmann

On Tue, Aug 22, 2000 at 01:37:58AM +0200, "Steinar H. Gunderson" 
[EMAIL PROTECTED] wrote:
 But then, most other GNU programs use -V for --version and -v for --verbose,
 right? I completely agree that we should strive not to break anything, but the
 question is what (if anything) we'll break, vs. the need for consistency.

I doubt there is any software testing the gimp version using the gimp
itself currently. After all, there is gimptool and it seems to get used
(it is more interesting to check for the library version anyway).

So unless there is some really important piece of software we should go for
-v = verbose.

(BTW, this is not universal, many programs do use -v for version and
--verbose or -V for verboseness (some even use -x or -e or somethign
weird), and, yes, I always swear at them...)

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



Command Line Options

2000-08-21 Thread Piers Cornwell

Hi,

I wanted to clean up the command line options a little (to make gimp
even more perfect:) and so i made some changes to not just the
formatting, but also the options themselves. I just wanted to see what
other people think of this, and if the -v - -V change will affect
anyone adversely.

Heres the new output:

Usage: gimp [option ... ] [file ... ]

Options:
  -b, --batch commands   Run in batch mode.
  -c, --console-messages   Display warnings to console instead of a
dialog box.
  -d, --no-dataDo not load brushes, gradients, palettes,
patterns.
  -g, --gimprc gimprcUse an alternate gimprc file.
  -h, --help   Output this help.
  -n, --no-interface   Run without a user interface.
  -r, --restore-sessionTry to restore saved session.
  -s, --no-splash  Do not show the startup window.
  -S, --no-splash-imageDo not add an image to the startup window.
  -v, --verboseShow startup messages.
  -V, --versionOutput version information.
  --no-shm Do not use shared memory between GIMP and
plugins.
  --no-xshmDo not use the X Shared Memory extension.
  --debug-handlers Enable non-fatal debugging signal
handlers.
  --display display  Use the designated X display.
  --system-gimprc gimprc Use an alternate system gimprc file.
  --enable-stack-trace never | query | always
   Debugging mode for fatal signals.

I'd also like to know if there's any reason why a long option, like
"--console-messages" _shouldn't_ have a short option (like "-c").

Thanks,

- Piers



Re: Command Line Options

2000-08-21 Thread Piers Cornwell

Hi, 

I forgot to say what changes i'd made (d'oh!). Here's a list: 

* Add "-c" as synonym for "--console-messages" 
* Add "-d" as synonym for "--no-data" 
* Add "-n" as synonym for "--no-interface" 
* Add "-s" as synonym for "--no-splash" 
* Add "-S" as synonym for "--no-splash-image" 
* Add "-v" as synonym for "--verbose" 
* Remove "-v" as synonyn for "--version" 
* Add "-V" as synonym for "--version" 
* Other only cosmetic changes to the output of "gimp --help". 

Here is the original output for comparison: 

Usage: gimp [option ...] [files ...] 
Valid options are: 
  -h --help    Output this help. 
  -v --version Output version info. 
  -b --batch commands    Run in batch mode. 
  -g --gimprc gimprc Use an alternate gimprc file. 
  -n --no-interface    Run without a user interface. 
  -r --restore-session Try to restore saved session. 
  --no-data    Do not load patterns, gradients, palettes,

brushes. 
  --verbose    Show startup messages. 
  --no-splash  Do not show the startup window. 
  --no-splash-image    Do not add an image to the startup window.

  --no-shm Do not use shared memory between GIMP and 
its plugins. 
  --no-xshm    Do not use the X Shared Memory extension. 
  --console-messages   Display warnings to console instead of a 
dialog box. 
  --debug-handlers Enable debugging signal handlers. 
  --display display  Use the designated X display. 
  --system-gimprc gimprc Use an alternate system gimprc file. 

Thanks, 

- Piers 



Re: Command Line Options

2000-08-21 Thread Garry R. Osgood

Piers Cornwell wrote:

 Hi,

 snipped...


 * Add "-v" as synonym for "--verbose"
 * Remove "-v" as synonyn for "--version"
 * Add "-V" as synonym for "--version"

I'd keep -v = --version and add -V = --verbose.
This, out of respect for backward compatibility for
any version checking automata.

My two U. S. cents

Garry





Re: Command Line Options

2000-08-21 Thread Guillermo S. Romero / Familia Romero

[EMAIL PROTECTED] (2000-08-21 at 1913.32 -0400):
  * Add "-v" as synonym for "--verbose"
  * Remove "-v" as synonyn for "--version"
  * Add "-V" as synonym for "--version"
 I'd keep -v = --version and add -V = --verbose.
 This, out of respect for backward compatibility for
 any version checking automata.

Yes, but Gimp is doing it inverse that everyone I have seen. I would
preffer -v verbose, and -V version, to match other software.
 
GSR
 



Re: Command Line Options

2000-08-21 Thread Steinar H. Gunderson

On Mon, Aug 21, 2000 at 07:13:32PM -0400, Garry R. Osgood wrote:
I'd keep -v = --version and add -V = --verbose.
This, out of respect for backward compatibility for
any version checking automata.

But then, most other GNU programs use -V for --version and -v for --verbose,
right? I completely agree that we should strive not to break anything, but the
question is what (if anything) we'll break, vs. the need for consistency.

/* Steinar */
-- 
Homepage: http://members.xoom.com/sneeze/



Re: Command Line Options

2000-08-21 Thread Miles O'Neal

Steinar H. Gunderson said...
|
|But then, most other GNU programs use -V for --version and -v for --verbose,
|right? I completely agree that we should strive not to break anything, but the
|question is what (if anything) we'll break, vs. the need for consistency.

I almost did this when I revamped the command line options
a year or so ago.  I didn't for the "backwards compatibility"
reasons.  With much wider distribution of the GIMP now, I
wish I'd done it then.

I vote to change it.

-Miles