Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix configuration of appname width #416

Merged
merged 5 commits into from
May 24, 2024
Merged

fix configuration of appname width #416

merged 5 commits into from
May 24, 2024

Conversation

dlax
Copy link
Member

@dlax dlax commented Apr 9, 2024

Fix #415

@dlax dlax marked this pull request as ready for review April 9, 2024 13:58
@dlax dlax requested a review from blogh April 9, 2024 13:58
dlax added 5 commits May 21, 2024 10:08
We avoid propagating the negation and instead use a meaningful name as
"dest", set the action to "store_false" and the default to True.

Also the "dest" for "--no-database" is changed to "database" for
consistency with other options.

When building the Flag value, in Flag.load(), we now follow the order of
options definition.

Finally, we define a flag() helper to factor out the common definition
pattern of these options.
There was a discrepancy in column names and configuration options. We
now use configuration option names when looking up in the configuration
to determine if a column has a custom width defined.
We move the many 'ifs' within the add_column() helper, which makes it
possible to catch unhandled configuration entries.
Copy link
Collaborator

@blogh blogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dlax dlax merged commit bb61e61 into dalibo:master May 24, 2024
3 checks passed
@dlax dlax deleted the opts branch May 24, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

appname width config option does not work
2 participants