diff --git a/news.d/bugfix/1842.core.md b/news.d/bugfix/1842.core.md new file mode 100644 index 000000000..a82be3ece --- /dev/null +++ b/news.d/bugfix/1842.core.md @@ -0,0 +1 @@ +If plover_plugins does not have arguments, print available arguments and exit. diff --git a/news.d/bugfix/1842.windows.md b/news.d/bugfix/1842.windows.md new file mode 100644 index 000000000..24362b45f --- /dev/null +++ b/news.d/bugfix/1842.windows.md @@ -0,0 +1 @@ +Update Windows installer NSI to remove all files. diff --git a/plover/plugins_manager/__main__.py b/plover/plugins_manager/__main__.py index 96538bcb8..324286df5 100644 --- a/plover/plugins_manager/__main__.py +++ b/plover/plugins_manager/__main__.py @@ -82,6 +82,10 @@ def list_plugins(freeze=False): def main(args=None): if args is None: args = sys.argv[1:] + if not args: + print("Usage: plover_plugins [args]") + print("Commands: list_plugins [--freeze], check, install, uninstall, list") + sys.exit(2) if args[0] == "list_plugins": assert len(args) <= 2 if len(args) > 1: diff --git a/windows/installer.nsi b/windows/installer.nsi index 762250581..8777c1df1 100644 --- a/windows/installer.nsi +++ b/windows/installer.nsi @@ -111,9 +111,11 @@ SectionEnd Section "Uninstall" RMDir /r "$INSTDIR\data" + RMDir /r "$INSTDIR\hidapi-src" Delete "$INSTDIR\LICENSE.txt" Delete "$INSTDIR\plover.exe" Delete "$INSTDIR\plover_console.exe" + Delete "$INSTDIR\vcruntime140.dll" Delete "$INSTDIR\uninstall.exe" RMDir "$INSTDIR"