summaryrefslogtreecommitdiffstats
path: root/argument.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add clang-format to repoPatrick Venture2018-11-011-17/+18
| | | | | | | Add clang-format to repo. Change-Id: I3f8704d80dd0bdde0706ab189c68cffe6d347995 Signed-off-by: Patrick Venture <venture@google.com>
* Spelling fixesGunnar Mills2018-08-141-1/+1
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: Ic396413f5bc7d9fc45e1042870634ea13185ae03 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Make --continue as no_argumentLei YU2018-04-191-2/+2
| | | | | | | | | | | | This is an improvement for the previous commit, that make --continue option as no_argument. Tested: phosphor-gpio-monitor is able to run with or without --continue argument, and it it continues to run after key press with this argument. Change-Id: I6f9dc5423e19eace366e382a2408dd143a124915 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add --continue argumentLei YU2018-04-121-1/+7
| | | | | | | | | | | | | | | | | | | | The monitor will exit when key is pressed. Add --continue argument and if it is set to "true", the monitor will continue after key is pressed. This is useful in cases to monitor a button presses. E.g. It can be used to monitor ID button and start a system unit everytime when the button is pressed. This argument is optional so it does not break the current code. Tested: With "--continue=true", the monitor does not exit when the key is pressed. Without the argument of if it is set to other strings, the monitor exits after the key is pressed. Change-Id: I4f2ca16d7b26e10397181c83c2c5947ed5ce091f Signed-off-by: Lei YU <mine260309@gmail.com>
* Add code to accept command line argumentsVishwanatha Subbanna2017-04-261-0/+95
Accepts command line arguments for path, interested GPIO transition and an optional systemd unit file to be called into when the GPIO transitions per expectation. Change-Id: I98d967d36cfbb768bc9d0dd04517575fa7e408fe Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud