[vdr] Re: plugin load and --help
Udo Richter
udo_richter at gmx.de
Sun Mar 26 21:07:53 CEST 2006
Klaus Schmidinger wrote:
> Udo Richter wrote:
>> While we're at --help and plugins:
>> There is no way how a plugin can detect whether it was loaded
>> regularly or just for displaying --help or --version. In the latter
>> cases, ProcessArgs() will be called with empty parameters and cannot
>> fail because it is missing a parameter. If it does fail, VDR stops
>> loading plugins and shows --help and --version only for plugins loaded
>> before the failed one.
>>
>> (do we need to call ProcessArgs() at all for --help/--version?)
>
> What's the point in adding -P parameters to a 'vdr --help'
> call, anyway?
Exactly my point...
Ok, an example. Load plugin foo, with parameter REQUIRED:
> vdr -P "foo REQUIRED"
This works. This is supposed to not work:
> vdr -P "foo"
error: foo requires an argument
But then this doesn't work either:
> vdr --version
vdr (1.3.45) - The Video Disk Recorder
error: foo requires an argument
Cheers,
Udo
More information about the vdr
mailing list