neocities.h

a C library for interacting with Neocities' API
git clone https://github.com/tanguyandreani/neocities.h
Log | Files | Refs | README | LICENSE

commit 8250ede8d617c46b57b8a87003867c27891b42a4
parent bf99ba966ef4246d3093f0301750022bf2c1f14c
Author: Tanguy Andreani <dev@tanguy.space>
Date:   Fri, 22 Feb 2019 22:56:04 +0100

Added: comment about argument format

Diffstat:
Mupload.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/upload.c b/upload.c @@ -21,7 +21,14 @@ int main(int argc, char *argv[]) char date[33] = { 0 }; if (argc != 2) { - fprintf(stderr, "Usage: %s filename\n", argv[0]); + /* ./dir/file is valid + ./some-utf8-character/file is valid + ./dir/some-utf8-character is invalid + + after the last /, filename should be [a-zA-Z\.]+ + */ + + fprintf(stderr, "Usage: %s filename\n\n", argv[0]); exit(200); // no enum member share this number }