Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[type1] Implement '-h' option. Fix exit code for known options #537

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

miguelsousa
Copy link
Member

Completes fix for #347

} else
usage();
return 0;
} else
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy sort of hints at the problem here, which is that you need to add some braces after your else and between the return statements, i.e.:

    } else {
        usage();
        return 1;
    }
    return 0;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 in that case I need to add braces to detype1.c as well.

@miguelsousa miguelsousa merged commit 7f4bb2a into develop Aug 9, 2018
@miguelsousa miguelsousa deleted the type1-exit branch August 9, 2018 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants