Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--input-dir argument #23

Closed
becauro opened this issue Mar 7, 2023 · 4 comments
Closed

--input-dir argument #23

becauro opened this issue Mar 7, 2023 · 4 comments
Assignees

Comments

@becauro
Copy link

becauro commented Mar 7, 2023

Hi !

Here is a "little" feedback for this great project.

It seems a checking for --input-dir argument is not implemented yet, despite that is listed in the scripts help.

  • By using the --input-dir argument along the wrong file, it doesn't throw "Error: This is not a supported input!" message in ANY script.
  • Although the script receives the correct file for extraction, just for passing a --input-dir argument to it, the script doesn't perform extraction anymore. At least that was what happen with AMI_UCP_Extract.py when using it along this bios.

NOTE 1 (Ergonomics): That's an ergonomic point, specially for newbies on "Bios Mod" (or Python language).

NOTE 2 (BUG): Passing the correct argument (and correct BIOS file) to the correct script and getting incorrect result is a bug. Even if this argument is OPTIONAL.

Thanks 🚀

@platomav
Copy link
Owner

platomav commented Mar 8, 2023

Please show how exactly you're trying to use/run a given script using "--input-dir" parameter.

@becauro
Copy link
Author

becauro commented Mar 8, 2023

Okay...

All manners I used it under Ubuntu 22.04

python3 script.py --input-dir folderA/bios.exe -o folderB

or (with ./):

python3 script.py --input-dir ./folderA/bios.exe -o folderB

or (with single quotes):

python3 script.py --input-dir 'folderA/bios.exe' -o folderB

or (with single quotes and ./):

python3 script.py --input-dir './folderA/bios.exe' -o folderB

===

NOTE: I also tested all of those options along with -i parameter and between quotes ("")

@becauro
Copy link
Author

becauro commented Mar 8, 2023

Now I tested like this python3 script.py --input-dir './folderA' -o folderB (by ommiting the bios file name ) and that worked.

Ok, That way was different for me.

Only now I realized that if I pass the input parameter along the folder path where the BIOS PE is placed, the script runs every bios PE file inside that given folder.

That is fine, so abort my suggestions.

Thank you!

@becauro becauro changed the title --input-dir argument has a bug --input-dir argument Mar 8, 2023
@becauro becauro closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2023
@platomav
Copy link
Owner

platomav commented Mar 8, 2023

Yes, the issue was wrong usage of the parameter. As its same and description explain ("extract from given input directory"), it works with directories/folders, not files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants