add hour argument

This commit is contained in:
randomuser 2021-06-11 00:59:40 -05:00
parent 113b75c415
commit f8245cef58
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ int main(int argc, char **argv) {
break; case 'd': s.d = 1; break; case 'd': s.d = 1;
break; case 'b': s.b = 1; break; case 'b': s.b = 1;
break; case 'f': s.f = 1; break; case 'f': s.f = 1;
break; case 'h': s.s = s.s + (atoi(optarg) * 3600);
break; case 'm': s.s = s.s + (atoi(optarg) * 60); break; case 'm': s.s = s.s + (atoi(optarg) * 60);
break; case 's': s.s = s.s + atoi(optarg); break; case 's': s.s = s.s + atoi(optarg);
break; case '?': return 1; break; case '?': return 1;