mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
Changed final print statement to reflect changes
Arguments for the `disable` command are either `{0, false}`, or `{1, true}`. However, only if the argument is `1` will the print statement print "Howdy has been disabled". It should, by right, also show if the argument was `true`. To fix it, I noticed that the 2 possible sets of arguments fall into either of 2 groups characterised by the variable `out_value`. I thus suggest that the variable be used in the conditional for the final print statement.
This commit is contained in:
parent
3c9537a35f
commit
fcd3bedb00
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ for line in fileinput.input([config_path], inplace=1):
|
|||
print(line.replace("disabled = " + config.get("core", "disabled"), "disabled = " + out_value), end="")
|
||||
|
||||
# Print what we just did
|
||||
if builtins.howdy_args.argument == "1":
|
||||
if out_value == "true":
|
||||
print("Howdy has been disabled")
|
||||
else:
|
||||
print("Howdy has been enabled")
|
||||
|
|
Loading…
Reference in a new issue