feat: add whitespace argument

This commit is contained in:
Daylin Morgan 2022-09-13 18:51:19 -05:00
parent 60333cf92d
commit 570df70a6b
2 changed files with 4 additions and 2 deletions

View file

@ -41,8 +41,7 @@ release: version-check
.PHONY: clean
c clean:
@rm -f task.mk .task.mk
### | args: --divider
###
### | args: --divider --whitespace
### examples of task.mk features | args: --divider --align center
define list_files_py
from pathlib import Path

View file

@ -23,6 +23,7 @@ def rawargs(argstring):
parser = argparse.ArgumentParser()
parser.add_argument("-a", "--align")
parser.add_argument("-d", "--divider", action="store_true")
parser.add_argument("-ws","--whitespace",action="store_true")
return parser.parse_known_args(argstring.split())
@ -71,6 +72,8 @@ def print_rawmsg(msg, argstr, maxlens):
f" {''*(len('$(HELP_SEP)')+sum(maxlens)+2)}", "$(DIVIDER_COLOR)"
)
)
if args.whitespace:
print()
def print_help():