pimutils / pimutils/khal

Missing --json option in khal list

Open
#1,344 2 comments 7 reactions 0 assignees View on GitHub

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
Screenshot 2024-04-06 at 6 58 07 PM

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.