Missatge de Rony G. Flatscher <[email protected]> del dia dv., 3
d’oct. 2025 a les 11:53:

> On 03.10.2025 11:17, Josep Maria Blasco wrote:
>
>
> Missatge de Josep Maria Blasco <[email protected]> del dia dj.,
> 2 d’oct. 2025 a les 14:36:
>
>> (cut)
>> Maybe "-fo" or "--file-options"? And also, maybe the keys should be the
>> same as the option names below, to avoid confusions.
>>
>
> As we would end up needing four options, i.e., -o, -go, -fo, and also -gfo
> (or -fgo)
> for "file" and "global" at the same time, maybe a simpler and more elegant
> way
> would be to use a "file:" prefix when using files, thus:
>
> <options> ::= (-o | -go) ("string" | file:<filespec>)
>
> yes, that looks easier, nicer, indeed!
>
> As <filespec> may be enquoted (because of white space or otherwise illegal
> characters) the question would be whether "file:" should be outside or
> inside quotes, if present?
>
I'd say outside, as this allows to instantaneously recognize
what kind of option is being used: if it starts with file:, it's
a file specification, and if it is quoted, it's an options string.

Otherwise, a quoted string could be both, which is more
confusing.

  Josep Maria


> ---rony
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to