aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c
index 097fc51..3b03672 100644
--- a/src/main.c
+++ b/src/main.c
@@ -44,7 +44,7 @@ help()
puts("-s, --status: status to post");
puts("-F, --filename: filename to be attatched with the post");
puts("-v, --visibility: The visibility which the post will have, can"
- "be: public unlisted, private and direct");
+ "be: public unlisted, private and direct");
puts("-f, --follow: Follow an account");
puts("-u, --unfollow: Unfollow an account");
puts("-U, --usage: prints usage message");
@@ -81,19 +81,21 @@ main(int argc, char **argv)
int option_index = 0;
static struct option long_options[] = {
- {"status", required_argument, 0, 's'},
- {"filename", required_argument, 0, 'F'},
- {"visibility", required_argument, 0, 'v'},
- {"follow", required_argument, 0, 'f'},
- {"unfollow", required_argument, 0, 'u'},
- {"usage", no_argument, 0, 'U'},
- {"help", no_argument, 0, 'h'},
- {0, 0, 0, 0}
+ { "status", required_argument, 0, 's' },
+ { "filename", required_argument, 0, 'F' },
+ { "visibility", required_argument, 0, 'v' },
+ { "follow", required_argument, 0, 'f' },
+ { "unfollow", required_argument, 0, 'u' },
+ { "usage", no_argument, 0, 'U' },
+ { "help", no_argument, 0, 'h' },
+ { 0, 0, 0, 0 }
};
- while((c = getopt_long(argc, argv, "s:v:F:f:u:hU", long_options, &option_index)) != -1) {
+ while((c = getopt_long(
+ argc, argv, "s:v:F:f:u:hU", long_options, &option_index)) !=
+ -1) {
switch(c) {
- case 's':
+ case 's':
status = optarg;
break;
case 'v':