vimdoc icon indicating copy to clipboard operation
vimdoc copied to clipboard

[feature] let default plugin is current directory

Open Freed-Wu opened this issue 3 years ago • 2 comments

❯ vimdoc
usage: vimdoc [-h] [--version] PLUGIN
vimdoc: error: the following arguments are required: PLUGIN
❯ vimdoc .

Why not let default plugin is .? Thanks.

Freed-Wu avatar Sep 10 '22 12:09 Freed-Wu

I kinda prefer having it explicit over the small convenience of not having to type ..

Might be worth giving a better error with a usage hint when plugin path is missing, though.

dbarnett avatar Sep 13 '22 01:09 dbarnett

OK, I see.

Freed-Wu avatar Sep 13 '22 05:09 Freed-Wu

Turned out argparse didn't make it as easy as I'd expected to add a custom error for that case like "Did you mean to run 'vimdoc .'?" But I have some changes for slightly more self-explanatory help on the PLUGIN arg in #126.

dbarnett avatar Nov 02 '22 05:11 dbarnett