Missing --json option in khal list
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 233
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
Describe the bug
Try to use option --json but the returned error said Error: No such option: --json Did you mean --once?
If applicable: Stack Trace
Above
To Reproduce
Steps to reproduce the behavior:
- Run
khal list --json title
Expected behavior
- Able to use --json option
Screenshots
OS, version, khal version and how you installed it:
- The output of khal --version:
khal, version 0.11.3 - Installation method
brew install khal - python version: I have multiple but the default is currently 3.11.7
- OS: MacOS 14.4.1
- Your khal config file:
[calendars]
[[personal]]
path = PATH_TO_MY_FILE
type = calendar
[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M
[default]
default_calendar = personal
- The versions of your other python packages: empty
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the CLI entry point for khal list and inspect how its options are defined. Confirm the expected --json title behavior and add coverage for the command; it is done when the option is accepted instead of producing a no-option error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100