diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-28 02:31:40 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-28 02:31:40 -0300 |
commit | 582cbc6cf67919ec189098817ab1e4541c8e761d (patch) | |
tree | dd045a9d6ba2a2a59ef161774988f0aedcc5c0cb /src/main.c | |
parent | 5205db347cb9f56187c2ad5e767281a7a4016533 (diff) | |
download | blogc-582cbc6cf67919ec189098817ab1e4541c8e761d.tar.gz blogc-582cbc6cf67919ec189098817ab1e4541c8e761d.tar.bz2 blogc-582cbc6cf67919ec189098817ab1e4541c8e761d.zip |
implemented datetime parsing/formatting
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -147,10 +147,12 @@ main(int argc, char **argv) goto cleanup; } for (unsigned int j = 0; pieces[0][j] != '\0'; j++) { - if (!(pieces[0][j] >= 'A' && pieces[0][j] <= 'Z')) { + if (!((pieces[0][j] >= 'A' && pieces[0][j] <= 'Z') || + pieces[0][j] == '_')) + { fprintf(stderr, "blogc: error: invalid value " - "for -D (configuration key must be uppercase): " - "%s\n", pieces[0]); + "for -D (configuration key must be uppercase " + "with '_'): %s\n", pieces[0]); b_strv_free(pieces); rv = 2; goto cleanup; |