From 985612f42bdbb04b9fd46d233b29610759f2af06 Mon Sep 17 00:00:00 2001 From: zawz Date: Sat, 17 Aug 2019 01:01:57 +0200 Subject: [PATCH] options: fixed double space between option and arg in help --- src/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.cpp b/src/options.cpp index 6052a3a..e98afd4 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -123,8 +123,8 @@ void ztd::option::print_help(int leftpad, int rightpad) const //argument if(this->takesArgument) { - printf(" <%s>", arg_name.c_str()); - rightpad -= arg_name.size() + 3; + printf("<%s>", arg_name.c_str()); + rightpad -= arg_name.size() + 2; } printf("%*s%s", -1*rightpad, "", help_text.c_str());