Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
~% add help
Browse files Browse the repository at this point in the history
  • Loading branch information
skippyr committed Jul 31, 2023
1 parent 5cc422a commit 6fba6bd
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion reveal.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,56 @@
#define program_name__ "reveal"
#define program_version__ "v9.0.3"
#define program_copyright__ "Copyright (c) Sherman Rofeman. MIT license."
#define program_help__ "help"
#define program_support_url__ "https://github.com/skippyr/reveal/issues"
#define program_help__\
"Usage: reveal [FLAGS | PATHS]\n"\
"Reveals information about entries in the file system.\n\n"\
"METADATA FLAGS\n"\
"The following flags allow you to get information about the program "\
"itself.\n\n"\
" --copyright prints its copyright notice.\n"\
" --version prints its version.\n"\
" --help prints these help instructions.\n\n"\
"DATA TYPE FLAGS\n"\
"The following flags allow you to change what type of data to get from "\
"the\nentries following them.\n\n"\
"If none is used, the one marked as default will be considered in "\
"use.\n\n"\
" --contents (default) prints its contents.\n"\
" --type prints its type: regular, directory, "\
"symlink,\n socket, fifo, block, character or "\
"unknown.\n"\
" --size prints its size using the most formidable "\
"unit:\n gigabyte (GB), megabyte (MB), "\
"kilobyte (kB) or\n byte (B).\n"\
" --byte-size prints its size in bytes.\n"\
" --permissions prints its read (r), write (w) and execute "\
"(x)\n permissions for user, group and "\
"others. If a\n permission is not set "\
"the lack (-) character\n will be used.\n"\
" --octal-permissions prints its permissions in octal base.\n"\
" --user prints the user that owns it.\n"\
" --user-uid prints the UID of the user that owns it.\n"\
" --group prints the group that owns it.\n"\
" --group-gid prints the GID of the group that owns it.\n"\
" --modified-date prints the date when its contents where "\
"last\n modified.\n\n"\
"These flags expect, at least, one path following them. If none is "\
"provided,\nthey will consider the last valid one given or else, the "\
"current directory.\n\n"\
"SYMLINKS FLAGS\n"\
"These flags allow you to change how symlinks following them will be "\
"handled,\naffecting the origin of the data you reveal.\n\n"\
"If none is used, the one marked as default will be considered in "\
"use.\n\n"\
" --follow-symlinks (default) symlinks will be followed.\n"\
" --unfollow-symlinks symlinks will not be followed\n\n"\
"EXIT CODES\n"\
"The exit code 1 will be throw if an error happens during its "\
"execution.\n\n"\
"Errors will be reported through the standard error stream.\n\n"\
"SUPPORT\n"\
"Report issues, questions or suggestion at:\n" program_support_url__ "."

#define is_expecting_path_bit__ (1 << 5)
#define is_following_symlinks_bit__ (1 << 6)
Expand Down

0 comments on commit 6fba6bd

Please sign in to comment.