docs(reference): fix dir_list command syntax in endpoint commands#306
Merged
Conversation
The dir_list section documented named flags (--dir_path, --file_pattern) that the command parser does not accept. The command takes two positional arguments (root directory, then a file name expression) plus an optional -d/--depth flag. Update the parameters and usage example accordingly, and switch the example to the current CLI form (limacharlie task send). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
The
dir_listsection indocs/8-reference/endpoint-commands.mddocumented named flags (--dir_path,--file_pattern) that the command parser does not accept — copying the usage example results in a parse error.The actual syntax is:
rootdir(positional): root directory where to begin the listing fromfileexp(positional): file name expression supporting basic wildcards like*and?-d, --depth(optional): maximum depth of the listing, defaults to a single levelChanges
--depthflaglimacharlie5.5.1 release on PyPI:limacharlie task send --sid <SID> --task 'dir_list "C:\\Windows\\System32" "*.exe" --depth 1'Note: several other command sections in this file have the same invented-flag issue (e.g.
file_get,file_hash,dns_resolve,file_mov). This PR only fixesdir_list; a broader sweep can follow separately.🤖 Generated with Claude Code