Commit 15a0de57 authored by Seblu's avatar Seblu
Browse files

fix options conflict in shutdown command

parent 4d9bddaa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):