Fixed help flag output.
This commit is contained in:
@@ -112,7 +112,7 @@ proc handleConsoleCommand(cq: Conquest, args: string) =
|
|||||||
# Handle help flag
|
# Handle help flag
|
||||||
except ShortCircuit as err:
|
except ShortCircuit as err:
|
||||||
if err.flag == "argparse_help":
|
if err.flag == "argparse_help":
|
||||||
cq.error(err.help)
|
cq.output(err.help)
|
||||||
|
|
||||||
# Handle invalid arguments
|
# Handle invalid arguments
|
||||||
except CatchableError:
|
except CatchableError:
|
||||||
|
|||||||
Reference in New Issue
Block a user