mirror of
https://github.com/tat3r/tdfiglet.git
synced 2025-06-08 07:29:55 +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.info = false;
|
||||||
opt.encoding = ENC_UNICODE;
|
opt.encoding = ENC_UNICODE;
|
||||||
|
|
||||||
|
if (argc == 1) {
|
||||||
|
usage();
|
||||||
|
}
|
||||||
|
|
||||||
while((o = getopt(argc, argv, "w:j:c:e:i")) != -1) {
|
while((o = getopt(argc, argv, "w:j:c:e:i")) != -1) {
|
||||||
switch (o) {
|
switch (o) {
|
||||||
case 'w':
|
case 'w':
|
||||||
|
Loading…
Reference in New Issue
Block a user