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

khal new -i is too unforgiving when mistakes are made #1341

Open
WhyNotHugo opened this issue Mar 2, 2024 · 0 comments
Open

khal new -i is too unforgiving when mistakes are made #1341

WhyNotHugo opened this issue Mar 2, 2024 · 0 comments

Comments

@WhyNotHugo
Copy link
Member

To Reproduce

khal new -i
calendar: personal    
summary: an event created via khal new -i
datetime range: 3d
critical: Could not parse "3d".
critical: Please check your configuration or run `khal printformats` to see if this does match your configured [long](date|time|datetime)format.
critical: If you suspect a bug, please file an issue at https://github.com/pimutils/khal/issues/ 

Actual behavior
If any mistake, the creation process must start from scratch, providing again every valid field.

Expected behavior
khal should just prompt over and over until it gets SIGINT, or maybe escape, or enter on empty input.

If applicable: Stack Trace
n / a

OS, version, khal version and how you installed it:

  • The output of khal --version: khal, version 0.11.3
  • Installation method: Alpine distro package
  • python version Python 3.11.8
  • OS [e.g. arch] Alpine Linux
magarnicle pushed a commit to magarnicle/khal that referenced this issue Mar 4, 2024
Previously, if the user entered a bad value for one field khal would
exit with an error and the user would have to start again.

Fixes issue pimutils#1341
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

No branches or pull requests

1 participant