Skip to content

fix: Error text is not shown for Qt CLI parser - #8692

Merged
nbolton merged 1 commit into
masterfrom
parser-error-text
Jun 18, 2025
Merged

fix: Error text is not shown for Qt CLI parser#8692
nbolton merged 1 commit into
masterfrom
parser-error-text

Conversation

@nbolton

@nbolton nbolton commented Jun 16, 2025

Copy link
Copy Markdown
Member

Related to: #8685

We should print the parser error text to stderr and return non-zero exit code so that it's clear when you enter an invalid option.

As it is, it's a bit confusing how it doesn't tell you when you enter an invalid arg.

@sithlord48

Copy link
Copy Markdown
Member

we don't need the method for this but otherwise seams ok will test out later

Comment thread src/apps/deskflow-gui/deskflow-gui.cpp Outdated
@nbolton
nbolton force-pushed the parser-error-text branch from c5f44ba to a912309 Compare June 18, 2025 12:07
@nbolton
nbolton enabled auto-merge (rebase) June 18, 2025 12:08
@nbolton
nbolton requested a review from sithlord48 June 18, 2025 12:08
@nbolton
nbolton force-pushed the parser-error-text branch from a912309 to 537651e Compare June 18, 2025 12:27

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One tiny change request.

Comment thread src/apps/deskflow-gui/deskflow-gui.cpp Outdated
@nbolton
nbolton force-pushed the parser-error-text branch from 537651e to 536388b Compare June 18, 2025 12:33
@nbolton
nbolton requested a review from sithlord48 June 18, 2025 12:33
@nbolton
nbolton merged commit 4e2ad25 into master Jun 18, 2025
@nbolton
nbolton deleted the parser-error-text branch June 18, 2025 12:49
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.

2 participants