cbuchner1 / ccminer

Christian Buchner's & Christian H.'s CUDA miner project
Other
274 stars 1.71k forks source link

add usage information when invoked with --help argument #29

Open krichter722 opened 9 years ago

krichter722 commented 9 years ago

I'm currently stuggeling with some issues to get started with ccminer 1.2 and noticed that invoking ccminer --help doesn't display a usage message which would be nice. The output is - due to my issues which should not be part of that issue report/discussion - currently

$ ccminer --help
     *** ccMiner for nVidia GPUs by Christian Buchner and Christian H. ***
                 This is version 1.2 (beta)
      based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
      based on pooler-cpuminer extension for HVC from
           https://github.com/heavycoin/cpuminer-heavycoin
            and
           http://hvc.1gh.com/
    Cuda additions Copyright 2014 Christian Buchner, Christian H.
      LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm
      BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM
      YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4
modprobe: ERROR: could not insert 'nvidia': No such device
[2014-12-26 03:48:49] Unable to query number of CUDA devices! Is an nVidia driver installed?

In case there already is a usage message, the test which causes the above failure should be moved behind displaying the usage message in the program flow.