Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions cfbs/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ def __call__(self, parser, namespace, values, option_string=None):


@cache
def get_arg_parser():
def get_arg_parser(whitespace_for_manual=False):
command_list = commands.get_command_names()
parser = argparse.ArgumentParser(prog="cfbs", description="CFEngine Build System.")
CFBS_DESCRIPTION = "CFEngine Build System."
if whitespace_for_manual:
parser = argparse.ArgumentParser(
prog="cfbs",
description=CFBS_DESCRIPTION,
formatter_class=argparse.RawTextHelpFormatter,
)
else:
parser = argparse.ArgumentParser(prog="cfbs", description=CFBS_DESCRIPTION)
parser.add_argument(
"command",
metavar="cmd",
Expand Down
2 changes: 1 addition & 1 deletion cfbs/man_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def generate_man_page():
manpage = Manpage(get_arg_parser())
manpage = Manpage(get_arg_parser(whitespace_for_manual=True))
manpage.manual = "CFEngine Build System manual"
manpage.description = (
"combines multiple modules into 1 policy set to deploy on your infrastructure. "
Expand Down