[PATCH] Commit and log commands: strings encodings

John A Meinel john at arbash-meinel.com
Thu Dec 1 19:10:03 GMT 2005


Alexander Belchenko wrote:
> John A Meinel пишет:
>> And I'm for a patch which sets the input and output encoding.
>>
>> However, I would not use '-i' and '-o' for this. -i and -o are short
>> flags that are desirable for lots of options, and I don't think forcing
>> the encoding is an option that should generally be supplied.
> 
> '-i' and '-o' is used in docutils as encoding options.
> We discuss this options earlier, see:
> http://lists.ubuntu.com/archives/bazaar-ng/2005q3/003106.html
> 
> Just FYI, I found only 3 commands in current bzr.dev that have options
> started at 'o' or 'i':
> 
> * `pull` have option `overwrite`
> * `ls` have option `ignored`
> * `selftest` have option `one`
> 
> Alexander
> 
> 

Sure, but o and i are very commonly used for --input, --output, etc.
Meaning redirect the output to a file.

And while we aren't using them now, I think it would be good to have
them available in the future.

I'm not stating absolutes here. I just know that in general, short
options are reserved until we find that an option is being supplied all
the time (like --revision and --message).

Perhaps we could have --input-encoding --output-encoding, and then a
shortcut for the most common --utf8.

Just some ideas. Martin is the ultimate authority on whether
short-options make it in.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/5bd0ebbc/attachment.pgp 


More information about the bazaar mailing list