mirror of
https://github.com/tat3r/tdfiglet.git
synced 2025-04-18 15:08:24 +00:00
Don't crash if launched without arguments
This commit is contained in:
parent
b0860ceca3
commit
6a6301de5f
@ -117,6 +117,10 @@ main(int argc, char *argv[])
|
||||
opt.info = false;
|
||||
opt.encoding = ENC_UNICODE;
|
||||
|
||||
if (argc == 1) {
|
||||
usage();
|
||||
}
|
||||
|
||||
while((o = getopt(argc, argv, "w:j:c:e:i")) != -1) {
|
||||
switch (o) {
|
||||
case 'w':
|
||||
|
Loading…
Reference in New Issue
Block a user