From b158708a83fbcc350bca22cf7c62a988ce530cfa Mon Sep 17 00:00:00 2001 From: mithe24 Date: Mon, 13 Oct 2025 12:02:57 +0200 Subject: feat(man page): Added man page for program --- src/Makefile | 2 +- src/docs/sorter.1 | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/docs/sorter.1 (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 683bad0..1ddcc7f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ $(TARGET): $(OBJS) $(AS) $(ASFLAGS) $< -o $@ deploy: $(TARGET) - tar -czvf $(TARGET)-$(VER).tar.gz $(TARGET) + tar -czvf $(TARGET)-$(VER).tar.gz $(TARGET) docs/sorter.1 clean: rm -f $(TARGET) $(OBJS) *.tar.gz diff --git a/src/docs/sorter.1 b/src/docs/sorter.1 new file mode 100644 index 0000000..823872e --- /dev/null +++ b/src/docs/sorter.1 @@ -0,0 +1,23 @@ +.\" Manpage for myprog +.TH SORTER 1 "October 2025" "1.0" "Sorter Manual" +.SH NAME +sorter \- a simple program for sorting lists of coordinates +.SH SYNOPSIS +.B sorter +[OPTION] [file...] +.SH DESCRIPTION +A command-line sorting utility for sorting lists of coordinates. +.SH OPTIONS +.TP +\-h, \--help +Show help message and exit. +.TP +\-r, \--reverse +Sorts list of coordinates in descending order +.TP +\ +Input file(s) to process. +.SH EXAMPLES +sorter file.txt +.SH SEE ALSO +sort(1) -- cgit v1.2.3-70-g09d2