Skip to content

Commit

Permalink
Rename and refactor argument extract and strip
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Sep 22, 2013
1 parent 7e3b12c commit c4bdab5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@
arguments = None


version_arguments = extract(arguments, ['--major', '--minor', '--patch'])
def strip_long_arguments(argument_names):
long_arguments = extract(arguments, argument_names)
return dict([
(key[2:], value) for key, value in version_arguments.items()
(key[2:], value) for key, value in long_arguments.items()
])


def extract_version_arguments():
return strip_long_arguments(['--major', '--minor', '--patch'])


"""
Expand Down

0 comments on commit c4bdab5

Please sign in to comment.