kshutdown --help (return code: 0)
kshutdown: WARNING: "DESKTOP_SESSION" and "XDG_CURRENT_DESKTOP" environment variables not set (unknown or unsupported Desktop Environment). Good luck.
Usage: kshutdown [Qt-options] [KDE-options] [options] [time]
A graphical shutdown utility
Generic options:
--help Show help about options
--help-qt Show Qt specific options
--help-kde Show KDE specific options
--help-all Show all options
--author Show author information
-v, --version Show version information
--license Show license information
-- End of options
Actions:
-h, --halt Turn Off Computer
-s, --shutdown Turn Off Computer
-r, --reboot Restart Computer
-H, --hibernate Hibernate Computer
-S, --suspend Suspend Computer
-k, --lock Lock screen
-l, --logout Logout
-e, --extra <file> Run executable file (example: Desktop shortcut or Shell script)
--test Test Action (does nothing)
Triggers:
-i, --inactivity Detect user inactivity. Example:
--logout --inactivity 90 - automatically logout after 90 minutes of user inactivity
Other Options:
--cancel Cancel an active action
--confirm Confirm command line action
--hide-ui Hide main window and system tray icon
--init Do not show main window on startup
--mod <value> A list of modifications
--ui-menu <value> Show custom popup menu instead of main window
Arguments:
time Activate countdown. Examples:
13:37 (HH:MM) or "1:37 PM" - absolute time
10 or 10m - number of minutes from now
2h - two hours
More Info...
http://sourceforge.net/p/kshutdown/wiki/Command%20Line/