alehaa / crutils

Tools and API to communicate with barcode readers
GNU Lesser General Public License v3.0
3 stars 0 forks source link

crutilsd: arguments should be evaluated #3

Closed alehaa closed 10 years ago

alehaa commented 10 years ago

Arguments passed to crutilsd should be evaluated, so that it could be start on a terminal by a user for debugging etc.

reasonable flags could be: -v, --verbose -> no daemonize (-d will be ignored), print all information on stdout (& syslog) -d, --daemon -> daemonize --dbus, --no-dbus -> send / don't send codes via dbus to other applications [device] -> device file

So a user could start a new instance with

crutilsd -v --no-dbus /dev/codereaders/test

to get all information about this device and scanned codes. While we are debugging this device, all scanned codes will NOT be send to other applications.

alehaa commented 10 years ago

done in commit 10c84395d98017eafa11e2502d31ff2b17738e84