mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
feat: optional arguments
This commit is contained in:
parent
eb59cbde7f
commit
7a05ad56fc
5 changed files with 63 additions and 20 deletions
|
|
@ -4,12 +4,12 @@ command = "rm"
|
|||
pattern = [ "no such file or directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[:-2]}} {{typo[-1](file)}}'''
|
||||
{{command[0}} {{opt(-*)}} {{typo[-1](file)}}'''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "is a directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[0]}} -r {{command[1:]}}'''
|
||||
{{command[0]}} {{opt(-*)}} --recursive {{command[1:]}}'''
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue