Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIN32: Document nut.exe wrapper and improve its usability #2446

Merged
merged 11 commits into from
May 16, 2024

Conversation

jimklimov
Copy link
Member

  • added help() method
  • added CLI options to handle version, help, debug level
  • improved error-reporting when running it in a terminal: seeing nothing with no error reporting is not fun (gotta dig in code to find out to go to Event Log for the error message)
  • added a man page (see also Enable installation of built HTML and PDF documents #2445 about delivering it nicely)

Closes: #2432

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…hen starting/stopping daemons

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…version info [networkupstools#2432]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… arguments, report help() and exit with error code [networkupstools#2432]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…kupstools#2430]

* as a console app that tried to be a service - report the error
  not only in Event Log but also on console;
* for other issues write the LastError code to Event Log;
* always exit with error code

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… args as such (void)

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…st debug of this and called NUT programs

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… of NUT for Windows wrapper for all-in-one service [networkupstools#2432]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov merged commit 2af04c8 into networkupstools:master May 16, 2024
30 checks passed
@jimklimov jimklimov deleted the issue-2432 branch May 16, 2024 07:24
jimklimov added a commit to jimklimov/nut that referenced this pull request May 24, 2024
jimklimov added a commit to jimklimov/nut that referenced this pull request May 24, 2024
…" normally [networkupstools#2446]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request May 24, 2024
… prepare Windows Firewall for upsd [networkupstools#2446, networkupstools#2455]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

NUT for Windows: add help/usage to the CLI wrapper nut.exe
1 participant