cctool

A tool for managing contacts and calendars.
git clone https://git.ce9e.org/cctool.git

commit
a000d454c424eed0de8f45330ede46d0b04f463e
parent
b329a7613a15efa3cbe9c6f8538b639e801ea889
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-05-08 19:46
Gardening

Diffstat

M cctool.py 8 ++++----

1 files changed, 4 insertions, 4 deletions


diff --git a/cctool.py b/cctool.py

@@ -492,9 +492,9 @@ def parse_args(argv=None):
  492   492 	parser.add_argument('input', nargs='*', default=['-'], metavar='FILE')
  493   493 	parser.add_argument('--output', '-o', metavar='FILENAME')
  494   494 	parser.add_argument('--sort', '-s', metavar='SORTKEY',
  495    -1 		help="sort entries by this field")
   -1   495 		help='sort entries by this field')
  496   496 	parser.add_argument('--merge', '-m', metavar='MERGEKEY',
  497    -1 		help="merge entries by this field")
   -1   497 		help='merge entries by this field')
  498   498 	return parser.parse_args(argv)
  499   499 
  500   500 
@@ -508,7 +508,7 @@ def get_outformat(args):
  508   508 		if ext in outformats:
  509   509 			return ext
  510   510 
  511    -1 	print("Missing output format")
   -1   511 	print('Missing output format')
  512   512 	sys.exit(1)
  513   513 
  514   514 
@@ -519,7 +519,7 @@ def get_informat(filename):
  519   519 	if ext in informats:
  520   520 		return ext
  521   521 	else:
  522    -1 		print("Missing input format")
   -1   522 		print('Missing input format')
  523   523 		sys.exit(1)
  524   524 
  525   525