Martchus
|
368fc46e47
|
Improve tests of argument parser
|
2018-01-29 16:23:10 +01:00 |
Martchus
|
2a797e436d
|
Improve documentation of value completion behaviour
|
2018-01-29 16:22:26 +01:00 |
Martchus
|
ad705239b2
|
Simplify argument parsing
|
2017-11-29 22:07:45 +01:00 |
Martchus
|
424a0bfb6f
|
Add method for parsing args with customizable behavior
|
2017-11-27 10:25:41 +01:00 |
Martchus
|
f9e4c74aff
|
argument parser: Expose occurrence info directly
Primarily for testing porposes, see documentation.
|
2017-11-06 19:50:46 +01:00 |
Martchus
|
cc09fdc35f
|
Use Argument::varValueCount everywhere
|
2017-11-06 19:49:39 +01:00 |
Martchus
|
6bc97e5b16
|
Fix API doc (\macro -> \def)
|
2017-11-06 19:47:17 +01:00 |
Martchus
|
9829dbe727
|
Make use of escape codes configurable
|
2017-10-17 00:00:46 +02:00 |
Martchus
|
6933b7b33e
|
argument parser: Add public accessor for callback
|
2017-10-16 23:46:21 +02:00 |
Martchus
|
ee66c56905
|
Improve documentation
|
2017-09-30 18:42:34 +02:00 |
Martchus
|
46bfbdd829
|
Allow initialization of values for shell completion in callback
Use case is implementing completion for syncthingctl also for
device and folder IDs.
|
2017-09-30 18:42:21 +02:00 |
Martchus
|
2f5f197b95
|
Add ArgumentParser::parseArgsOrExit()
to reduce boilerplate code for error handling when
parsing CLI arguments.
|
2017-09-29 17:14:57 +02:00 |
Martchus
|
1c450d43a2
|
Add method to find specified operation
|
2017-09-26 16:46:17 +02:00 |
Martchus
|
a1d6c3ba7b
|
Make invokeCallbacks() static as no members used
|
2017-09-26 16:44:22 +02:00 |
Martchus
|
e52fd5a4af
|
Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
|
2017-09-17 21:45:23 +02:00 |
Martchus
|
4157f8849a
|
Improve argument parser tests
|
2017-06-25 16:03:40 +02:00 |
Martchus
|
3bc1756425
|
Add Argument::varValueCount
|
2017-05-19 00:12:07 +02:00 |
Martchus
|
59e20b1043
|
Apply clang-format
|
2017-05-01 03:13:11 +02:00 |
Martchus
|
91e5a8b0b0
|
Show version of used libraries in --help
* Include only own libraries and Qt 5 modules
so far
* First step to implement
https://github.com/Martchus/tageditor/issues/13
|
2017-04-15 01:10:38 +02:00 |
Martchus
|
f626bdf9c7
|
Fix typos
|
2017-03-01 18:18:54 +01:00 |
Martchus
|
28d2063d33
|
Fix Bash completion for abbreviations
|
2016-12-24 16:07:43 +01:00 |
Martchus
|
cab332bcad
|
Refactor reading arguments
Replace ArgumentParser::readSpecifiedArgs() with
ArgumentReader class to simplify argument list
|
2016-12-23 22:40:33 +01:00 |
Martchus
|
70869f24a8
|
Add method to reset arguments recursively
|
2016-11-26 00:11:48 +01:00 |
Martchus
|
9f3ca443e4
|
Make ArgumentParser::verifyArgs() more strict
|
2016-11-15 22:02:40 +01:00 |
Martchus
|
bbb884da30
|
Don't imply args which can't be combined
Leads to more useful error messages if an unknown
argument has been specified.
|
2016-11-15 21:44:23 +01:00 |
Martchus
|
a1189d3c3b
|
Allow specifying custom exit() function
|
2016-10-30 00:37:28 +02:00 |
Martchus
|
438ca48cbb
|
Improve doc
|
2016-10-30 00:30:54 +02:00 |
Martchus
|
5119bb5c6a
|
Improve ArgumentParser::readSpecifiedArgs()
- Fix minor issues
- Add further test cases
|
2016-10-29 23:54:30 +02:00 |
Martchus
|
72426e2d4c
|
Fix bash completion when dir/file contains single quote
Also a few other improvements in bash completion code
|
2016-10-22 20:52:08 +02:00 |
Martchus
|
4c40004f0b
|
Improve CLI utils
- Add ArgumentParser::readArgs()
- Add Indentation
- Fix eraseLine()
|
2016-10-02 21:53:58 +02:00 |
Martchus
|
4829aa40b9
|
Fix mistakes in doc
|
2016-09-17 11:44:49 +02:00 |
Martchus
|
d6b08b8ed9
|
Fix decoration for static builds
- Also add improvemnts a few other things in the build system
|
2016-08-29 15:35:48 +02:00 |
Martchus
|
df8d942e1c
|
Improve argument parser
- Fix completion of values already containing '='
- Fix completion when current word contains '='
- Improve formatting of help
- Fix typo
|
2016-07-31 23:20:31 +02:00 |
Martchus
|
a3e9174476
|
Remove findArg
|
2016-07-17 01:27:42 +02:00 |
Martchus
|
23346e1a8e
|
Add convenience method to get first value
|
2016-07-17 01:26:34 +02:00 |
Martchus
|
d749ba7cc2
|
Provide complete occurance info (callbacks)
|
2016-07-04 23:18:49 +02:00 |
Martchus
|
03094a1f61
|
Add support for bash completion
|
2016-07-04 02:46:54 +02:00 |
Martchus
|
8bcf8cd008
|
Check for siblings of parent args
|
2016-06-23 00:58:43 +02:00 |
Martchus
|
a3648963ee
|
Make argv const
|
2016-06-17 17:55:09 +02:00 |
Martchus
|
79ce6e9aa6
|
Improve argument parser
- Fix some implementation details
- Extend tests
|
2016-06-14 00:43:32 +02:00 |
Martchus
|
526cbc5282
|
Rewrite argument parsing
|
2016-06-13 00:00:36 +02:00 |
Martchus
|
4f87cc1181
|
Use C-strings where std::string is unneccessary
|
2016-06-11 19:42:03 +02:00 |
Martchus
|
db7b02b1db
|
Make header guards more unique and consistent
|
2016-06-11 19:09:14 +02:00 |
Martchus
|
f3077ef8e3
|
Use C-strings for argument definitions
Argument names and abbreviations are always
C-string literals and hence using std::string
has no advantage.
|
2016-05-25 01:24:17 +02:00 |
Martchus
|
ff15a54624
|
added addMainArgument
|
2016-02-27 01:19:16 +01:00 |
Martchus
|
6e1f2d4d56
|
added example
|
2015-10-06 22:27:16 +02:00 |
Martchus
|
4d6bf67188
|
fixed includes
|
2015-09-06 20:19:09 +02:00 |
Martchus
|
06ce1629cc
|
added export macro
|
2015-08-27 21:36:48 +02:00 |
Martchus
|
f159952090
|
added application info
|
2015-08-25 19:12:05 +02:00 |
Martchus
|
8896fb7673
|
added missing initialization of m_denotesOperation, small adjustments
|
2015-07-27 23:19:10 +02:00 |