zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: Re: Assorted _arguments arguments
Date: Fri, 12 May 2000 02:53:02 +0000	[thread overview]
Message-ID: <1000512025303.ZM261@candle.brasslantern.com> (raw)
In-Reply-To: <200005110852.KAA15526@beta.informatik.hu-berlin.de>

On May 11, 10:52am, Sven Wischnowsky wrote:
} Subject: PATCH: Re: Assorted _arguments arguments
}
} I said that I was thinking about using something like _argument_sets
} for this. But, why not use _argument_sets itself? This allows the
} set-strings be given as `(name)' meaning that all specifications in
} that set are mutually exclusive with all other specs in the set. They
} are mutually exclusive with the set in which they are, so to say.
} 
} Example:
} 
}   _argument_sets \
}       -common -options ':and:(arguments)' \
}     - '(compress)' \
}       {-c,--compress}'[compress]' \
}     - '(decompress)' \
}       {-d,--decompress}'[decompress]'
} 
} Is that convenient enough?

I haven't really worked at understanding _argument_sets very much, but:

As I understand it, _argument_sets only works for fairly simple option
combinations.  As soon as you start needing ->state and the like, it's
necessary to revert to using _arguments directly.  Is it possible to
combine the two in some useful way so that it isn't necessary to give
up the above convenience in order to do more complex parsing?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~2000-05-12  2:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-11  8:52 Sven Wischnowsky
2000-05-12  2:53 ` Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-12  7:35 Sven Wischnowsky
2000-05-09  9:02 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1000512025303.ZM261@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).