Browse Source

Add --version

Nicola Corna 6 years ago
parent
commit
095bc8f06d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      me_cleaner.py

+ 3 - 0
me_cleaner.py

@@ -472,6 +472,9 @@ if __name__ == "__main__":
     softdis = parser.add_mutually_exclusive_group()
     bw_list = parser.add_mutually_exclusive_group()
 
+    parser.add_argument("-v", "--version", action="version",
+                        version="%(prog)s 1.1")
+
     parser.add_argument("file", help="ME/TXE image or full dump")
     parser.add_argument("-O", "--output", metavar='output_file', help="save "
                         "the modified image in a separate file, instead of "