Skip to content

Commit

Permalink
Default to prompting [fixes #348]
Browse files Browse the repository at this point in the history
We lost the --[no]flag idiom with the move to argparse.  We really ought
to go over the options with a fine tooth comb.  One that stood out to me
was not prompting by default.  This readds default prompting on the
'add' command and allows supression of prompting with --noprompt.
  • Loading branch information
jcrowgey committed Jun 24, 2018
1 parent 84598ae commit 68503f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcalcli/gcalcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ def get_argument_parser():
"(possibly multi-day if --duration is greater than 1). The "
"time part of the --when will be ignored.")
add.add_argument(
"--prompt", action="store_true",
"--noprompt", action="store_false", dest="prompt", default=True,
help="Prompt for missing data when adding events")

# TODO: Fix this it doesn't work this way as nothing ever goes into [start]
Expand Down

0 comments on commit 68503f2

Please sign in to comment.