Skip to content

Commit 67eca55

Browse files
committed
Add --version argument
1 parent a5244b4 commit 67eca55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stashcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def main():
652652
global token_location
653653

654654
usage = "usage: %prog [options] source destination"
655-
parser = optparse.OptionParser(usage)
655+
parser = optparse.OptionParser(usage, version="stashcp %s" % VERSION)
656656
parser.add_option('-d', '--debug', dest='debug', action='store_true', help='debug')
657657
parser.add_option('-r', dest='recursive', action='store_true', help='recursively copy')
658658
parser.add_option('--closest', action='store_true', help="Return the closest cache and exit")

0 commit comments

Comments
 (0)