Skip to content

Commit

Permalink
Added version switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvd-Znf committed Jun 19, 2023
1 parent 9f3ca36 commit 59e0eb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ And vlc is used to play it
Graphics on a plain tty look awsome!!!!
## Todo:
- [X] Video method switch
- [X] Version switch
- [ ] Better support for yt-dlp features
- [ ] Add somekind of "history" or "save video" mechanic
# Credit (for some AWSOME dependencies):
Expand Down
10 changes: 7 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ static char helpstr[] = "\n"
"Download video from target and they play it via vlc\n"
"\n"
"Posible command options:\n"
" -h | --help : Display this message\n"
" -k | --kitty : Preview thumbnail if you have kitty\n"
" -V | --vout : Specify a valid vlc output method\n"
" -h | --help : Display this message\n"
" -k | --kitty : Preview thumbnail if you have kitty\n"
" -v | --version : Print version and exit\n"
" -V | --vout : Specify a valid vlc output method\n"
"\n"
"Examples:\n"
" youtty 'Bad Apple' Download and watch Bad Apple!!\n"
Expand All @@ -36,6 +37,9 @@ int main(int argc, char *argv[]){
if(!strcmp(argv[i],"-h") || !strcmp(argv[i],"--help")){
printf("%s",helpstr);
return 0;
} else if(!strcmp(argv[i],"-v") || !strcmp(argv[i],"--version")) {
printf("youtty version: v0.1.0\n");
return 0;
} else if(!strcmp(argv[i],"-k") || !strcmp(argv[i],"--kitty")) {
kitten=true;
} else if(!strcmp(argv[i],"-V") || !strcmp(argv[i],"--vout")) {
Expand Down

0 comments on commit 59e0eb4

Please sign in to comment.