Skip to content

Commit a8abf9e

Browse files
committed
🐛 Fix parser
1 parent a1fb5e8 commit a8abf9e

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ repos:
4646
- id: check-mailmap
4747
# https://github.com/koalaman/shellcheck/issues/2909
4848
- id: shellcheck
49+
exclude: bin/neomuttp
4950
exclude_types:
5051
- zsh
5152
- repo: https://github.com/rhysd/actionlint
@@ -80,6 +81,7 @@ repos:
8081
rev: v3.10.0-2
8182
hooks:
8283
- id: shfmt
84+
exclude: bin/neomuttp
8385
- repo: https://github.com/lunarmodules/luacheck
8486
rev: v1.2.0
8587
hooks:

bin/neomuttp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ local utils = require "prompt.utils"
44
utils.init()
55
-- use ~/.config/neomutt/neomuttrc
66
-- utils.source_configs()
7-
local args = utils.get_parser():parse(arg)
7+
local parser = utils.get_parser()
8+
local args = parser:parse(arg)
89
if args.v then
910
mutt.command.version()
1011
os.exit(0)

bin/nvimp

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ end
1717
utils.init()
1818
-- use ~/.config/nvim/init.vim
1919
-- utils.source_configs()
20-
local args = utils.get_parser():parse(arg)
20+
local parser = utils.get_parser()
21+
local args = parser:parse(arg)
2122
if args.v then
2223
vim.cmd.version()
2324
os.exit(0)

bin/pandocp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local utils = require "prompt.utils"
33

44
utils.init()
55
utils.source_configs()
6-
local args = utils.get_parser():parse(arg)
6+
local parser = utils.get_parser()
7+
local args = parser:parse(arg)
78
utils.process_args(args, parser)
89
-- ex: filetype=lua

bin/texluajitp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local utils = require "prompt.utils"
44

55
utils.init()
66
utils.source_configs()
7-
local args = utils.get_parser():parse(arg)
7+
local parser = utils.get_parser()
8+
local args = parser:parse(arg)
89
utils.process_args(args, parser)
910
-- ex: filetype=lua

bin/texluap

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local utils = require "prompt.utils"
44

55
utils.init()
66
utils.source_configs()
7-
local args = utils.get_parser():parse(arg)
7+
local parser = utils.get_parser()
8+
local args = parser:parse(arg)
89
utils.process_args(args, parser)
910
-- ex: filetype=lua

0 commit comments

Comments
 (0)