systemctl: Add unit file states to state help message
authorRonan Pigott <rpigott@berkeley.edu>
Tue, 6 Aug 2019 02:07:31 +0000 (19:07 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Aug 2019 06:38:43 +0000 (08:38 +0200)
src/systemctl/systemctl.c

index ec3e2a3..d3c643b 100644 (file)
@@ -83,6 +83,7 @@
 #include "terminal-util.h"
 #include "tmpfile-util.h"
 #include "unit-def.h"
+#include "unit-file.h"
 #include "unit-name.h"
 #include "user-util.h"
 #include "utf8.h"
@@ -7904,6 +7905,10 @@ static void help_states(void) {
         DUMP_STRING_TABLE(unit_active_state, UnitActiveState, _UNIT_ACTIVE_STATE_MAX);
 
         if (!arg_no_legend)
+                puts("\nAvailable unit file states:");
+        DUMP_STRING_TABLE(unit_file_state, UnitFileState, _UNIT_FILE_STATE_MAX);
+
+        if (!arg_no_legend)
                 puts("\nAvailable automount unit substates:");
         DUMP_STRING_TABLE(automount_state, AutomountState, _AUTOMOUNT_STATE_MAX);