Now, whenever a cheatsheet is to be edited, if that cheatsheet does not
exist on the `DEFAULT_SHEET_PATH`, it is first copied there before being
opened for editing. This prevents system-wide cheatsheets from being
edited when using `cheat` as `root`.
This commit is contained in:
Chris Lane
2015-02-11 21:02:45 -05:00
parent ff8ba4e717
commit c70dc002fa
3 changed files with 11 additions and 9 deletions

View File

@ -38,7 +38,7 @@ from docopt import docopt
if __name__ == '__main__':
# parse the command-line options
options = docopt(__doc__, version='cheat 2.1.5')
options = docopt(__doc__, version='cheat 2.1.6')
# list directories
if options['--directories']: