simon-git: xcopy (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Jul 3 19:15:57 BST 2023


TL;DR:
  2b6520f Rework option parser to support joined short options.

Repository:     https://git.tartarus.org/simon/xcopy.git
On the web:     https://git.tartarus.org/?p=simon/xcopy.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2023-07-03 19:15:57

commit 2b6520fcef43a61d905cd87d30357153fbd309cd
web diff https://git.tartarus.org/?p=simon/xcopy.git;a=commitdiff;h=2b6520fcef43a61d905cd87d30357153fbd309cd;hp=545a470f09a50073dd906d9445e338a54209d057
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Jul 3 19:15:01 2023 +0100

    Rework option parser to support joined short options.
    
    Now you can 'xcopy -ruh' instead of '-r -u -h'.
    
    There's a nasty special case where '-display' is regarded as a long
    option in spite of the single leading dash, because that's X11
    standard. But other than that, all the options are joinable short ones
    or GNU-style long ones.

 xcopy.c | 248 +++++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 142 insertions(+), 106 deletions(-)



More information about the tartarus-commits mailing list