Repository navigation
8000
tracer: document how to pass arguments to a spawned target - #212
Merged
Merged
Conversation
Explain in --help what a target can be, that arguments after it are passed to the spawned program, and that -- is needed before ones that start with -. Fixes frida#188
oleavr
force-pushed
the
tracer/document-arg-passing
branch
from
November 5, 2026 19:28
5fa511f to
c4381d6
Compare
Member
|
Thanks! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
frida-trace --helpsaidusage: frida-trace [options] targetwithout saying what a target can be, and gave no hint that extra arguments are passed to the spawned program, or that--is needed before arguments that start with-(frida-tools#188).With
nargs="*"on the positional,frida-trace -f ./prog arg1 arg2already forwardsarg1 arg2, butfrida-trace -f ./prog --flagfails withunrecognized arguments: --flag;--makes it work. Both cases are now spelled out in the epilog, and the usage line shows that extra arguments are accepted.Verified with the same parser shape (
-f+nargs="*"positional):-f ./prog -- --flag value-> target('file', ['./prog']), args['--flag', 'value']-f ./prog arg1 arg2-> args['arg1', 'arg2']-f ./prog --flag->error: unrecognized arguments: --flag(unchanged)No behavior changes, help text only;
black,isortandpyflakesare clean.