mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 04:51:08 +01:00
construct: Minor cleanup.
This commit is contained in:
parent
ccb2d86cdc
commit
7ea6a3b39a
1 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@ bool norun;
|
||||||
bool read_only;
|
bool read_only;
|
||||||
bool write_avoid;
|
bool write_avoid;
|
||||||
const char *execute;
|
const char *execute;
|
||||||
lgetopt opts[] =
|
lgetopt opts[]
|
||||||
{
|
{
|
||||||
{ "help", nullptr, lgetopt::USAGE, "Print this text" },
|
{ "help", nullptr, lgetopt::USAGE, "Print this text" },
|
||||||
{ "version", &printversion, lgetopt::BOOL, "Print version and exit" },
|
{ "version", &printversion, lgetopt::BOOL, "Print version and exit" },
|
||||||
|
@ -78,8 +78,9 @@ const char *const usererrstr
|
||||||
%s
|
%s
|
||||||
)"};
|
)"};
|
||||||
|
|
||||||
int main(int _argc, char *const *_argv, char *const *const _envp)
|
int
|
||||||
try
|
main(int _argc, char *const *_argv, char *const *const _envp)
|
||||||
|
noexcept try
|
||||||
{
|
{
|
||||||
umask(077); // better safe than sorry --SRB
|
umask(077); // better safe than sorry --SRB
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue