Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-05-01 Thread Jan Nijtmans
2013/4/24 Richard Hipp d...@sqlite.org

 On Wed, Apr 24, 2013 at 3:16 AM, Edward Berner e...@bernerfam.com wrote:

  Well... I've noticed that some commands use --verbose and some use
 --detail.  Is that an accidental inconsistency or is there a deeper
 design principle involved?

 I would guess accidental inconsistency.  The commands and their options
 have grown by accretion and the names of options tend to be whatever
 occurred to me at the moment.


Thanks! I now added -v|--verbose to all commands which already had
-l|--detail.
And v= or verbose= can now be used as alternative to detail= in URL
parameters.

Another small step towards better consistancy. The original
options/parameters are
retained, so this should not break any existing scripts.

Regards,
   Jan Nijtmans
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-26 Thread Stephan Beal
On Sat, Apr 27, 2013 at 3:19 AM, Stephan Beal sgb...@googlemail.com wrote:

 On Fri, Apr 26, 2013 at 10:36 AM, Jan Nijtmans jan.nijtm...@gmail.comwrote:

 json_page_stat uses full which means the about same.

 Naming all of those -v|--verbose seems the best option.


 That sounds like a good idea. i'll get that patched.


FYI: /json/stat now supports -v|--verbose as an alias for -f|--full, and
supports the verbose boolean URL parameter as an alias for full.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-24 Thread Edward Berner

On 4/23/2013 2:09 AM, Jan Nijtmans wrote:


If there are other suggestions or remarks for command-line
improvements, they are welcomed!



Well... I've noticed that some commands use --verbose and some use 
--detail.  Is that an accidental inconsistency or is there a deeper 
design principle involved?


Edward

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-24 Thread Jan Nijtmans
2013/4/24 Edward Berner e...@bernerfam.com

 On 4/23/2013 2:09 AM, Jan Nijtmans wrote:


 If there are other suggestions or remarks for command-line
 improvements, they are welcomed!


 Well... I've noticed that some commands use --verbose and some use
 --detail.  Is that an accidental inconsistency or is there a deeper
 design principle involved?

 Edward


That's a good one! And I would say that --showfiles makes the timeline
command much more verbose as well

Regards,
Jan Nijtmans
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-24 Thread Richard Hipp
On Wed, Apr 24, 2013 at 3:16 AM, Edward Berner e...@bernerfam.com wrote:

 On 4/23/2013 2:09 AM, Jan Nijtmans wrote:


 If there are other suggestions or remarks for command-line
 improvements, they are welcomed!


 Well... I've noticed that some commands use --verbose and some use
 --detail.  Is that an accidental inconsistency or is there a deeper
 design principle involved?


I would guess accidental inconsistency.  The commands and their options
have grown by accretion and the names of options tend to be whatever
occurred to me at the moment.



 Edward


 __**_
 fossil-users mailing list
 fossil-users@lists.fossil-scm.**org fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:**8080/cgi-bin/mailman/listinfo/**fossil-usershttp://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-23 Thread Jan Nijtmans
2013/4/19 Stefan Bellon sbel...@sbellon.de

 -n as short and --dry-run as long option seem like a good choice.


Thanks for all valuable feedback! -n and --dry-run it is now.

No existing scripts need to be rewritten because the original
--nochange and --test is kept as well, even though it is no
longer documented.

I also added many short options like -a for --all and -c for --closed
(JSON already had those) in places where it was missing.

If there are other suggestions or remarks for command-line
improvements, they are welcomed!

Regards,
 Jan Nijtmans
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-21 Thread Steve Landers

On 20/04/2013, at 2:46 AM, Richard Hipp d...@sqlite.org wrote:

 
 
 On Fri, Apr 19, 2013 at 1:19 PM, Stefan Bellon sbel...@sbellon.de wrote:
 On Fri, 19 Apr, Jan Nijtmans wrote:
 
  Yes, that would work fine. My question was not meant technical, but
  regarding the documentation: If --test|-n is the new 'official'
  option, and --nochange is deprecated, the documentation should be
  adapted accordingly as well.
 
 If changing (and possibly breaking existing scripts), why not change it
 to something *really* meaningful and use something other tools use,
 e.g. make:
 
   -n, --just-print, --dry-run, --recon
   Don't actually run any commands; just
   print them.
 
 -n as short and --dry-run as long option seem like a good choice.
 
 I can go with --dryrun (I think without the - between dry and run, but 
 that is a minor point that I won't insist on.)

I'm all for re-inventing square wheels, but given svn, rsync, git (and perhaps 
others) use -n and --dry-run it would be worth using those

Steve
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-19 Thread Stefan Bellon
On Fri, 19 Apr, Jan Nijtmans wrote:

 Yes, that would work fine. My question was not meant technical, but
 regarding the documentation: If --test|-n is the new 'official'
 option, and --nochange is deprecated, the documentation should be
 adapted accordingly as well.

If changing (and possibly breaking existing scripts), why not change it
to something *really* meaningful and use something other tools use,
e.g. make:

  -n, --just-print, --dry-run, --recon
  Don't actually run any commands; just
  print them.

-n as short and --dry-run as long option seem like a good choice.

Greetings,
Stefan

-- 
Stefan Bellon
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-19 Thread Richard Hipp
On Fri, Apr 19, 2013 at 1:19 PM, Stefan Bellon sbel...@sbellon.de wrote:

 On Fri, 19 Apr, Jan Nijtmans wrote:

  Yes, that would work fine. My question was not meant technical, but
  regarding the documentation: If --test|-n is the new 'official'
  option, and --nochange is deprecated, the documentation should be
  adapted accordingly as well.

 If changing (and possibly breaking existing scripts), why not change it
 to something *really* meaningful and use something other tools use,
 e.g. make:

   -n, --just-print, --dry-run, --recon
   Don't actually run any commands; just
   print them.

 -n as short and --dry-run as long option seem like a good choice.


I can go with --dryrun (I think without the - between dry and run,
but that is a minor point that I won't insist on.)




 Greetings,
 Stefan

 --
 Stefan Bellon
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Rename --limit to --count and --test to --nochange

2013-04-19 Thread Stephan Beal
On Fri, Apr 19, 2013 at 7:19 PM, Stefan Bellon sbel...@sbellon.de wrote:

 If changing (and possibly breaking existing scripts), why not change it
 to something *really* meaningful and use something other tools use,
 e.g. make:


+1 except...


 -n as short and --dry-run as long option seem like a good choice.


...that we already use -n as a short-hand for limit/count in many places.
(That said, maybe there would be no semantic conflicts for this particular
change.)

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users