clon icon indicating copy to clipboard operation
clon copied to clipboard

Support options anywhere on the command-line

Open fitzsim opened this issue 3 years ago • 1 comments

Hi,

It would be nice if CLON supported having options anywhere on the command line.

For example, suppose I want to add an option at the end of a command I just typed. Assume the command has file arguments. And suppose it gave me more output than I wanted, so I want to also pass the -q option meaning "quiet". In the terminal, I would like to type:

C-p SPC -q RET

instead of, e.g.:

C-p C-a M-f SPC -q RET

This feature would allow CLON to match the behaviour of other command-line parsing libraries which accept options anywhere except after "--".

fitzsim avatar Apr 10 '21 03:04 fitzsim

I would like to have that as well. Especially for modern (git-like) command-line tools, program command subcommand --args is common.

alessiostalla avatar May 13 '21 21:05 alessiostalla