Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Program Options Optional Value (request for implicit_value() behaviour change to allow space)
From: Boris (boriss_at_[hidden])
Date: 2008-10-08 09:53:17

On Wed, 08 Oct 2008 11:23:29 +0200, Andrei LIHU <andrei.lihu_at_[hidden]>

> [...]So far I found a solution based on implicit_value() behaviour, with
> "-b" of type string, but my main problem is that in this case I am
> forced to enter the value to be adjacent to "-b" (e.g.
> -b"C:\otherlogfile.log"). The desired form would be the one with a
> space between, in order to maintain our backward compatibility of
> scripts (e.g: -b "C:\otherlogfile.log").

If -b is a short option I would have thought that
command_line_style::short_allow_next does what you want?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at