Skip to content
Snippets Groups Projects
Commit 15a0de57 authored by Seblu's avatar Seblu
Browse files

fix options conflict in shutdown command

parent 4d9bddaa
No related branches found
No related tags found
No related merge requests found
......@@ -30,11 +30,11 @@ class Command_shutdown(TqlCommand):
def __init__(self, cli, argv0):
TqlCommand.__init__(self, cli, argv0)
self.set_usage("%prog [options] <tql>")
self.add_option("-r", "--reboot", action="store_true", dest="reboot",
self.add_option("-R", "--reboot", action="store_true", dest="reboot",
help="Reboot after shutdown (default)")
self.add_option("-H", "--halt", action="store_false", dest="reboot",
help="Halt after shutdown")
self.add_option("-n", action="store_false", dest="graceful", default=True,
self.add_option("-F", action="store_false", dest="graceful", default=True,
help="do not go through init but go down real fast")
def __call__(self, argv):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment