jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

help support reinstated #101

Open PeteGozz opened 8 years ago

PeteGozz commented 8 years ago
modified:   libvdev/config.c
modified:   libvdev/config.h
modified:   vdevd/main.c
modified:   vdevd/vdev.c

patches to (re)instate --help for the vdevd daemon. should now exit early when -h or --help is supplied on the command line.

hopefully I have understood the project style and intent of various code structures. currently the exit code is 2 That value is pure opinion on my part and possibly accidental as that's what I tend to use in scripts.

make clean make

test and compare with build/sbin/vdevd -l mylogfile.log -h echo $? =hopefully returns=> 6 build/sbin/vdevd --help echo $? =hopefully returns=> 2

which may be a little helpful

There are structures and defs for future work I followed the existing code base as closely as I could.

Apologies As a bonus my .gitignore has been included . this may or may not cause hurt. I will attempt to tame my git.

PeteGozz commented 8 years ago

These were the result of some explorations and testing I did. Adding these to the "mothball"

mckaygerhard commented 6 years ago

hi why this pull request was not merged?

RossComputerGuy commented 4 years ago

I'm wondering the same thing