mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-11 05:32:16 +00:00
Remove the nil arguments check to allow starting without parameters.
This commit is contained in:
parent
9d60b107f1
commit
6fdbe01412
2
main.c
2
main.c
@ -2666,8 +2666,6 @@ int main (int argc, char *argv[])
|
|||||||
opt_register_table(opt_cmdline_table,
|
opt_register_table(opt_cmdline_table,
|
||||||
"Options for command line only");
|
"Options for command line only");
|
||||||
|
|
||||||
if (argc == 1)
|
|
||||||
quit(1, "No arguments specified");
|
|
||||||
opt_parse(&argc, argv, applog_and_exit);
|
opt_parse(&argc, argv, applog_and_exit);
|
||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
quit(1, "Unexpected extra commandline arguments");
|
quit(1, "Unexpected extra commandline arguments");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user