You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v2.3.1 it was possible to define command line parameters in plugins like the following:
flags.add_argument( '--some-arg', type=str, default='something', help='some help text' )
In later versions, like v2.4.0.rc6, in case the parameter is used in an embedded scenario,
that is, proxy.main() is called with kwargs, one would need to specially handle arguments in flags.py.
In v2.3.1 it was possible to define command line parameters in plugins like the following:
flags.add_argument( '--some-arg', type=str, default='something', help='some help text' )
In later versions, like v2.4.0.rc6, in case the parameter is used in an embedded scenario,
that is, proxy.main() is called with kwargs, one would need to specially handle arguments in flags.py.
args.some_arg = cast( Optional[str], opts.get( 'some_arg', args.some_arg, ), )
otherwise the default value of the argument is always used and there is no way to overwrite
the flag in the command line.
The text was updated successfully, but these errors were encountered: