arg-parser-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Arg-parser-bug] "cmain --block --quiet" prints "option '--block' wi


From: Antonio Diaz Diaz
Subject: Re: [Arg-parser-bug] "cmain --block --quiet" prints "option '--block' with argument '--quiet'"
Date: Tue, 23 Apr 2013 18:31:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Hello Anton.

Anton Kizernis wrote:
although it should print the error message?

Why?

Option '--block' takes an argument, and arguments can be anything, even the name of another option. Just try any program out there:

$ tar -cf --quiet lzip-1.15-pre1
$ tar -tf --quiet
lzip-1.15-pre1/
lzip-1.15-pre1/AUTHORS
lzip-1.15-pre1/COPYING
lzip-1.15-pre1/ChangeLog
[...]
$ rm -- --quiet
$

Here 'tar' creates and lists the file '--quiet' as it was commanded to do. (Instead of '--quiet' you can use the name of any tar option).


Regards,
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]