This commit is contained in:
John Shanahan 2013-09-03 23:53:58 -04:00
parent 68de9655e5
commit 139ff6c32e
2 changed files with 4 additions and 3 deletions

4
cheat
View File

@ -141,8 +141,8 @@ def main():
# create/edit option # create/edit option
option = sys.argv[1].lower() option = sys.argv[1].lower()
if option in ['-e', '--edit', '-c', '--create']: if option in ['-e', '--edit', '-c', '--create']:
# make sure EDITOR environment variable is set and that at least 3 arguments # make sure EDITOR env variable is set and that at least
# are given # 3 arguments are given
if 'EDITOR' not in os.environ: if 'EDITOR' not in os.environ:
print('In order to use "create" or "edit" you must set your ' print('In order to use "create" or "edit" you must set your '
'EDITOR environment variable to your favorite editor\'s path') 'EDITOR environment variable to your favorite editor\'s path')

View File

@ -3,7 +3,8 @@
from distutils.core import setup from distutils.core import setup
import os import os
setup(name='cheat', setup(
name='cheat',
version='1.0', version='1.0',
summary='Create and view interactive cheatsheets on the command-line', summary='Create and view interactive cheatsheets on the command-line',
homepage='', homepage='',