aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moch2018-03-03 15:43:16 -0500
committerDaniel Moch2018-03-03 15:43:16 -0500
commitdcddbd9efcb69fc0984debc9053a46169e268e50 (patch)
treed0fd6ea1237e65e3352dfc828f781df353253a14
parent41dc9af0e3c7f1a337db3daa8b8323354edcc194 (diff)
downloadcbr-schedule-dcddbd9efcb69fc0984debc9053a46169e268e50.tar.gz
Add version number. Correct usage message.
-rwxr-xr-xgenerate_schedule10
1 files changed, 8 insertions, 2 deletions
diff --git a/generate_schedule b/generate_schedule
index e8ae177..26d4432 100755
--- a/generate_schedule
+++ b/generate_schedule
@@ -27,12 +27,18 @@ from schedule import Schedule
from sys import argv
import configparser
+VERSION = '0.2.1-dev'
+
def print_usage():
+ print('generate_schedule ' + VERSION)
print('Usage: generate_schedule filename [config]')
print('\tfilename - File name to export schedule to. Export type is')
- print('\t determined from extension. Supported types are:')
+ print('\t\tdetermined from extension. Supported types are:')
print('\t\tJSON (ext: .json)')
- print('\tconfig - Path to schedule config file (default: schedule.ini)')
+ print('\t\tPlain text (ext: .txt)')
+ print('\t\tComma-separated values (ext: .csv)')
+ print('\t\tLaTeX (ext: .tex)')
+ print('\tconfig - Path to config file (default: generate_schedule.ini)')
def generate_schedule(filename, configfile='generate_schedule.ini'):
"""