Add support for response files to the CLI
Describe Your Suggestion
I would like to be able to pass in a list of items stored in a text file instead of calling vpkeditcli for every item in that text file. Similar to how a response file is handled with VPK with the @ symbol.
Related critiques
- The usage for
--add-fileis unclear. It does not inform you what to place after the file argument. - This error is vague
Too few arguments for '--add-file'.as it does not say what kind of argument it's looking for.VAR..does not inform the user of needing to give a keyword and directory. There should be a standard word used such aspathorpand it should be documented better in the documentation and help.- For example
vpkeditcli --add-file test.txt completely_random_phrase test_folder -o test_diris valid usage
- For example
- Users should be able to just pass the full path of an item instead of specifying the path and the file separately.
vpkeditcli --add-file my_folder/test.txt -o test
- When creating a new
.vpkfile the default behavior should be to add the_dirsuffix when--single-fileisn't passed as an argument. - There is no documentation for the CLI outside of the help command. Please add written documentation in either an
.mdfile or make a GitHub wiki.
Related critiques response
- The help text for
--add-filecan be improved, it is lacking - The error is a part of the argument parser library I am using and I cannot change it
- Assuming I haven't forgotten how to use my tool, your sample usage adds
test.txtas a subfolder ofcompletely_random_phrase, outputs the VPK to a file namedtest_dir, using the contents oftest_folder. This is intended behavior
- Assuming I haven't forgotten how to use my tool, your sample usage adds
- The file will be added to the root of the VPK in that case. I'd like to prevent unintentional path screwups by making both paths explicit. Use a single forward slash to indicate it should go in the root of the VPK
- This actually is the default when the user does not specify
-o. I can change this behavior for explicit output filenames as well - I will not be making separate documentation, if I did it would literally be identical to the help command, because I really don't know what else to write about it
Related critiques response response
The error is a part of the argument parser library I am using and I cannot change it
Shame, thanks for the explanation.
- Assuming I haven't forgotten how to use my tool, your sample usage adds
test.txtas a subfolder ofcompletely_random_phrase, outputs the VPK to a file namedtest_dir, using the contents oftest_folder. This is intended behavior
I forgot that this program is intended for use with a directory and not specific files. That makes sense.
I can change this behavior for explicit output filenames as well
Thanks!
I will not be making separate documentation
Shame.
Unrelated
Any thought on the original subject of the issue?
Original subject of the issue is good, I will probably implement this in a way where the user can either specify a response file or pass a list of file paths
Original subject of the issue is good, I will probably implement this in a way where the user can either specify a response file or pass a list of file paths
Thank you very much! This will be a big help!