mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-27 21:44:24 -04:00
Dell PFS Update Extractor v6.0_a2
Added --version parameter Structure fixes and improvements
This commit is contained in:
parent
96e87455de
commit
d6e8d31391
7 changed files with 96 additions and 90 deletions
common
|
@ -5,7 +5,6 @@ import os
|
|||
import re
|
||||
import sys
|
||||
import inspect
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
# Fix illegal/reserved Windows characters
|
||||
|
@ -43,17 +42,6 @@ def get_absolute_path(argparse_path):
|
|||
|
||||
return absolute_path
|
||||
|
||||
# Initialize common argparse arguments
|
||||
def argparse_init():
|
||||
argparser = argparse.ArgumentParser()
|
||||
|
||||
argparser.add_argument('files', type=argparse.FileType('r'), nargs='*')
|
||||
argparser.add_argument('-e', '--auto-exit', help='skip press enter to exit prompts', action='store_true')
|
||||
argparser.add_argument('-o', '--output-dir', help='extract in given output directory')
|
||||
argparser.add_argument('-i', '--input-dir', help='extract from given input directory')
|
||||
|
||||
return argparser
|
||||
|
||||
# Process input files (argparse object)
|
||||
def process_input_files(argparse_args, sys_argv=None):
|
||||
if sys_argv is None: sys_argv = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue