Re: [git-users] Feature request: -np (shorthand for --no-pager)

2016-04-28 Thread Philip Oakley
- Original Message - 
  From: Ashley Coolman 
  To: Git for human beings 
  Sent: Thursday, April 28, 2016 8:59 AM
  Subject: [git-users] Feature request: -np (shorthand for --no-pager)


  Would make sense, no?
As others have said, the single dash allows multiple single character options 
to be concatenated. the double-dash is used for options that take more than one 
character.

However you may be in luck with the ability to shorten long options to the 
minimum number of characters that makes the option unique. Try "--no-p", or 
"--no-pa", etc.  (this may depend on the comand that you apply it to...)

Philip

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Feature request: -np (shorthand for --no-pager)

2016-04-28 Thread Dale R. Worley
Ashley Coolman  writes:
> Would make sense, no?

Unfortunately, no.  The convention is that "--" is used to start long
options, which may have an optional value which is started with "=":

--[a-zA-Z0-0]+(=.*)?

Options that start with "-" use the long-established conventions for
single-letter options:  Each letter after the "-" is interpreted in turn
as an option name.  However, if an option is one that takes a value,
then the remainder of the argument is the option's value, or if there
are no further characters in the argument, the entire next argument is
the option's value.  Thus, "-np" means the same thing as "-n -p", while
"--np" specifies a single option.

The degree to which various packages follow these rules varies, but
they're generallly observed.  The Gnu utilities follow them quite
strictly.

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Feature request: -np (shorthand for --no-pager)

2016-04-28 Thread Magnus Therning

Ashley Coolman  writes:

> Would make sense, no?

It depends on whom you ask. I think quite a few people would argue that
short options, those with one hyphen, should consist of a single letter.
They would say that --np as shorthande for --no-pager would be better.

Personally I use command line completion to avoid having to type long
options ;)

/M

-- 
Magnus Therning  OpenPGP: 0x927912051716CE39
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

A computer never does what you want... only what you tell it.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[git-users] Feature request: -np (shorthand for --no-pager)

2016-04-28 Thread Ashley Coolman
Would make sense, no?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.