flownet icon indicating copy to clipboard operation
flownet copied to clipboard

Use default required-argument for subparsers

Open wouterjdb opened this issue 5 years ago • 0 comments

Currently we have some custom code for handling the situation where the user has not supplied any arguments.

https://github.com/equinor/flownet/blob/c23c9adfc09374aa220cbec11fc339504c494bf1/src/flownet/_command_line.py#L208-L210

For python > 3.6 there is the option of setting required = True as an argument for the subparser. We should update this when we drop Python 3.6 support.

wouterjdb avatar Sep 09 '20 10:09 wouterjdb