Permalink
Browse files

Added unlock action to command line parsing

  • Loading branch information...
1 parent 4a52f20 commit 6cb93ffe7dbe3ddf0ca3125d81fa05667d97c040 @offe committed Mar 26, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 hackpack.py
View
@@ -84,6 +84,9 @@ def parse_command_line(argv):
args['directory'] = argv[3]
else:
args['directory'] = os.path.splitext(args['file'])[0]
+ elif action == 'unlock' and len(argv) > 3:
+ args['file'] = argv[2]
+ args['execute'] = argv[3]
else:
raise CommandLineException('Missing parameters.')
return action, args

0 comments on commit 6cb93ff

Please sign in to comment.