Skip to content

Improve command line bool flag handling #708

@fujiapple852

Description

@fujiapple852

Currently the following command line flags require a bool argument:

--dns-lookup-as-info <bool>
--tui-preserve-screen <bool>

Instead, the presence or absence of these flags should determine if they are true or false.

These may also be optionally specified in the config file. Therefore the logic should be:

If cmd line flag is given, the result is true.
if the cmd line flag is not given and the flag is specified in the config file, use the value from the config file (true or false)
if the cmd line flag is not given and the flag is not specified in the cmd file, use the default value (false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingA breaking changeenhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions