polite-garden-50641
05/20/2020, 5:47 PMregister("--some-option", type=str, help="bla bla bla.")
Is there a way to specify that the option is required ? (I tried passing required=True) but I am getting an error: InvalidKwarg: Invalid registration kwarg required.
looking here: https://github.com/pantsbuild/pants/blob/e59706d9aef5c0d6ca528478ccd8b2e6eb43c739/src/python/pants/option/parser.py#L549 nothing seems like an obvious choice.witty-crayon-22786
05/20/2020, 5:50 PMwitty-crayon-22786
05/20/2020, 5:51 PMwitty-crayon-22786
05/20/2020, 5:52 PMhappy-kitchen-89482
05/20/2020, 5:53 PMpolite-garden-50641
05/20/2020, 5:56 PMinterpreter_constraints = ["CPython>=3.8,<4"]
under [python-setup]
polite-garden-50641
05/20/2020, 5:57 PMwitty-crayon-22786
05/20/2020, 5:58 PMwitty-crayon-22786
05/20/2020, 5:59 PMwitty-crayon-22786
05/20/2020, 5:59 PMhappy-kitchen-89482
05/20/2020, 10:29 PMhappy-kitchen-89482
05/20/2020, 10:30 PMwitty-crayon-22786
05/20/2020, 10:49 PM