gcalcli icon indicating copy to clipboard operation
gcalcli copied to clipboard

Options not valid anymore in ~/.gcalclirc ?

Open h3n3b0sch opened this issue 8 years ago • 8 comments

Hello,

I installed gcalcli version 4.0.0a3 in Debian buster with Synaptic. Everything installed without problems.

I made a file ~/.gcalclirc (as it states in the README.md) with the following:

  --military
  --duration=55
  --details=calendar
  --details=length
  --details=description
  --details=location
  --monday

It gives the following message before it shows a standard 5 day calendar:

The following options are either no longer valid globally or just plain invalid:
  --military
  --duration=55
  --details=calendar
  --details=length
  --details=description
  --details=location
  --monday

Are the options changed in v4.0.0a3 or maybe the way it should be written in the config file?

How and / or what should be put in ~/.gcalclirc to make the options work?

Hendrie

h3n3b0sch avatar Oct 25 '17 16:10 h3n3b0sch

I'm getting a similar error in a script that calls --calendar=Default#red --calendar=Work#blue --conky

These are all listed as no longer valid globally or just plain invalid.

fullstopslash avatar Dec 12 '17 15:12 fullstopslash

I played a bit and options seem to be positional at the moment. So only options that occur before the command can be entered in the rc file.

So with the command below, only the --calendar option can be used in the rc file. gcalcli --calendar=mycalendar calw 1 --width=20

grokkingit avatar Jan 22 '18 07:01 grokkingit

We should improve this. Possibly we can create a way to specify subcommand configurations. I need to revew the config formats we're supporting. Personally, I think the ---option syntax in a config file is a little weird, but I haven't looked closely at config file stuff yet.

jcrowgey avatar Jun 25 '18 03:06 jcrowgey

This bug is still existing in the latest release version: gcalcli v4.0.0a3 (Eric Davis, Brian Hartvigsen) `

The output when I call gcalcli with my custom .gcalclirc is the following:

The following options are either no longer valid globally or just plain invalid:
  --color_date=white
  --color_owner=white
  --color_now_marker=yellow
  --monday=true
  --military

ReneFroger avatar Dec 22 '18 12:12 ReneFroger

How do I force gcalcli to honor --monday and --military options?

yermulnik avatar Apr 13 '19 09:04 yermulnik

@yermulnik I had to use them on the command line and then as the last argument, e.g. gcalcli agenda --military and not gcalcli --military agenda

mschaaf avatar Apr 13 '19 10:04 mschaaf

Oh, I missed to specify that I need this for remind

yermulnik avatar Apr 13 '19 10:04 yermulnik

I'd love to see some work adding hints for people when they trip on these things. Lots of cli utilities with complex invocation options provide better feedback than we do. It would be nice to improve our handling of these cases.

jcrowgey avatar Apr 13 '19 18:04 jcrowgey