Seems like this is supported, but I can't get multiple arguments to work
See original GitHub issueThis is the docstring for punt.
I would like to have multiple --watch
options, but I can’t figure out a syntax that supports it.
"""Watches current path (or another path) for changes and executes
command(s) when a change is detected. Uses watchdog to track file changes.
Usage:
punt [-w <path> ...] [-l] [--] <commands>...
punt (-h | --help)
punt --version
Options:
-w <path> ..., --watch <path> ... Which path to watch [default: current directory]
-l, --local Only tracks local files (disables recusive)
"""
# blablabla
arguments = docopt(__doc__, version='punt v1.6')
print repr(arguments)
> punt -w dir1 dir2 -- make
{'--': False,
'--help': False,
'--local': False,
'--version': False,
'--watch': 'dir1',
'-h': False,
'<commands>': ['dir2', '--', 'make']}
> punt -w dir1 -w dir2 -- make
{'--': True,
'--help': False,
'--local': False,
'--version': False,
'--watch': 'dir2',
'-h': False,
'<commands>': ['make']}
Issue Analytics
- State:
- Created 11 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Retrieving multiple arguments for a single option using ...
I need help with getopts . I created a Bash script which looks like this when run:.
Read more >How to pass multiple arguments to function ? - GeeksforGeeks
We pass arguments in a function, we can pass no arguments at all, single arguments or multiple arguments to a function and can...
Read more >UI Doesn't Accept Functions with more than two Arguments or ...
I'm confused, I was able to get my button to work with a function with one argument. But when I add a second...
Read more >Use parameters to ask for input when running a query
Adding parameters to an Access desktop database query makes it ask for criteria so that it filters the results.
Read more >Function Argument Validation - MATLAB & Simulink
You can use multiple arguments blocks in a function, but all blocks must occur ... Use any MATLAB class or externally defined class...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In of my projects, I tried to use this feature with the -e option in the following line:
So it looks like:
I also tried:
Unfortunately, it does not works. Any suggestions?
UPDATE I solved this issue by moving the -e to the end:
@kyle-fritz-zocdoc no, unfortunately (or luckily).