Metadata-Version: 2.4
Name: echoarg
Version: 0.1.0
Summary: Print repr of passed arguments
Author: Slackow
License: MIT License
        
        Copyright (c) 2026 Slackow
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Keywords: echo,arguments,args,argv,repr
Requires-Python: >=3.0
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: license-file

# echoarg

`echoarg` is a tool to quickly output the exact contents of passed arguments as python strings

```bash
$ uvx echoarg test \ test2 $'\x0A'
['test', ' test2', '\n']
```
```bash
$ uvx echoarg $(printf $'which\tcharacters split\nargs?')
['which', 'characters', 'split', 'args?']
```
```bash
$ uvx echoarg "$IFS"
[' \t\n']
```

There's a limited number of options, as follows:

`-c` or `--count` will output the total number of remaining arguments

`-l` or `--list` will output a line by line list instead of a one line array

`-i` or `--interactive` assign the arguments to args, print them, and open a python repl with

`--` interpret any further arguments as literal

```bash
$ uvx echoarg -c $(echo 'hi there')
2
```
```bash
$ uvx echoarg -l one, two
1: 'one,'
2: 'two'
```
```bash
$ uvx echoarg -i some args
args = ['some', 'args']
>>> len(args[1])
4
>>>
```
```bash
$ uvx echoarg -- -l -c
['-l', '-c']
```
