Martchus
|
b3ebe5ce38
|
Fix typos found via `codespell --skip .git -w`
|
11 months ago |
Martchus
|
f109d36ad2
|
Add Argument::firstValueOr() for conveniently accessing the first value with a fallback
|
1 year ago |
Martchus
|
df126ab51c
|
Use std::size_t consistently
|
2 years ago |
Martchus
|
b693c72eb1
|
Fix old namespaces being mentioned in the documentation
|
3 years ago |
Martchus
|
eb34ce610d
|
Add domain to ApplicationInfo
|
3 years ago |
Martchus
|
fd531bdd6a
|
Prefix most of the macros in global.h
|
3 years ago |
Martchus
|
b48b2f5c06
|
Have everything in one top-level namespace
|
3 years ago |
Martchus
|
4c1b733290
|
Rework ArgumentParser::parseArgs()
* Remove "ext()" and "orExit()" versions
* Exit by default (might be intrusive but it is the most
common use)
* Rename Failure to ParseError
|
3 years ago |
Martchus
|
6d2544b908
|
Return argument parents by reference
|
3 years ago |
Martchus
|
02bd9f7c06
|
Add new fields to ApplicationInfo
|
3 years ago |
Martchus
|
b0b92ff1bf
|
Allow marking argument as deprecated
|
3 years ago |
Martchus
|
6d4e13f2dc
|
Use struct to store global application info
|
3 years ago |
Martchus
|
04a8ef02d5
|
Remove deprecated dependencyVersions
|
3 years ago |
Martchus
|
151a3ae9e5
|
Apply clang-format
|
3 years ago |
Martchus
|
e9cc26478b
|
Don't mix building static and shared libraries
|
3 years ago |
Martchus
|
6d7a6ab735
|
Don't pretent to add arguments implicitely
|
3 years ago |
Martchus
|
cfdfc302db
|
Use exit function passed to argument parser
|
3 years ago |
Martchus
|
57c896b547
|
Store boolean properties of Argument as flags
|
3 years ago |
Marius Kittler
|
a7926951cb
|
Make firstPresentUncombinableArg() private
|
3 years ago |
Martchus
|
bc8ea407bc
|
Prevent use of static variables in ArgumentParser
Have --no-color and --help added by default rather
so argument parser is in control over them and don't
has to use static functions.
|
3 years ago |
Martchus
|
517ef59e14
|
Prevent livetime issue in ArgumentValueConversionError
Breaking API/ABI is ok since this is part of experimental
ValueConversion namespace.
|
4 years ago |
Martchus
|
25ef4e28a2
|
Make tests compile under Windows
|
4 years ago |
Martchus
|
3d3378c878
|
Improve experimental value conversion for arg parser
* Fix issues and handle conversion errors
* Add tests
|
4 years ago |
Martchus
|
651720552e
|
Replace typedef's with using
* Except in code which will be discarded in v5 anyways
* Should not affect source and binary compatibility
|
4 years ago |
Martchus
|
5e8d8cb7d1
|
Show dashes in suggestions
|
4 years ago |
Martchus
|
f0b777207e
|
Fix dependency version under GCC 8
|
4 years ago |
Martchus
|
8ef92cbf47
|
Use Levenshtein algo to provide suggestions if arg not found
|
4 years ago |
Martchus
|
872ee49979
|
Refactor ArgumentParser::printBashCompletion()
|
4 years ago |
Martchus
|
94e76f5a1a
|
Add experimental methods to convert argument values
* Currently lacks error handling
* Needs testing
|
4 years ago |
Martchus
|
c8bf068e74
|
Reorder method declarations in Argument and ArgumentParser
So it becomes clear which parts might be moved to a separate class
to prevent Argument from becoming to big.
|
4 years ago |
Martchus
|
6249db3b09
|
Remove unused parameter in ArgumentParser::verifyArgs()
|
4 years ago |
Martchus
|
368fc46e47
|
Improve tests of argument parser
|
4 years ago |
Martchus
|
2a797e436d
|
Improve documentation of value completion behaviour
|
4 years ago |
Martchus
|
ad705239b2
|
Simplify argument parsing
|
5 years ago |
Martchus
|
424a0bfb6f
|
Add method for parsing args with customizable behavior
|
5 years ago |
Martchus
|
f9e4c74aff
|
argument parser: Expose occurrence info directly
Primarily for testing porposes, see documentation.
|
5 years ago |
Martchus
|
cc09fdc35f
|
Use Argument::varValueCount everywhere
|
5 years ago |
Martchus
|
6bc97e5b16
|
Fix API doc (\macro -> \def)
|
5 years ago |
Martchus
|
9829dbe727
|
Make use of escape codes configurable
|
5 years ago |
Martchus
|
6933b7b33e
|
argument parser: Add public accessor for callback
|
5 years ago |
Martchus
|
ee66c56905
|
Improve documentation
|
5 years ago |
Martchus
|
46bfbdd829
|
Allow initialization of values for shell completion in callback
Use case is implementing completion for syncthingctl also for
device and folder IDs.
|
5 years ago |
Martchus
|
2f5f197b95
|
Add ArgumentParser::parseArgsOrExit()
to reduce boilerplate code for error handling when
parsing CLI arguments.
|
5 years ago |
Martchus
|
1c450d43a2
|
Add method to find specified operation
|
5 years ago |
Martchus
|
a1d6c3ba7b
|
Make invokeCallbacks() static as no members used
|
5 years ago |
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
|
5 years ago |
Martchus
|
4157f8849a
|
Improve argument parser tests
|
5 years ago |
Martchus
|
3bc1756425
|
Add Argument::varValueCount
|
5 years ago |
Martchus
|
59e20b1043
|
Apply clang-format
|
5 years ago |
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
|
5 years ago |