summaryrefslogtreecommitdiff
path: root/src/parameters_parser.cc
AgeCommit message (Collapse)Author
2024-08-12Reduce headers dependency graphMaxime Coste
Move more code into the implementation files to reduce the amount of code pulled by headers.
2023-02-17Complete arguments to "echo -to-file"Johannes Altmanninger
Including this here because grandparent parent commit broke completions for "edit -fifo".
2023-02-17Use parameter parser to skip switch args in completionJohannes Altmanninger
The command line "hook -group xyz " should get scope completions but it actually gets hook completions because "xyz" is wrongly interpreted as positional argument. Fix this by using the parameters parser to compute positional arguments. Fixes #4840
2019-05-10Do not keep a reference to ParametersDesc inside ParameterParserMaxime Coste
This should fix #2900
2018-10-28Remove extra spaces for switches list in infoDelapouite
2018-07-05Parse unknown switches as positional for region highlightersMaxime Coste
2018-02-28Commands: Refactor generate_switches_docMaxime Coste
2018-02-28Merge remote-tracking branch 'aver-d/option_display'Maxime Coste
2018-02-26Fix out of bound read in ParameterParser::get_switchMaxime Coste
The empty string case was not correctly handled. Fixes #1883
2018-02-25Ease reading of command-line optionsaver-d
This change displays command-line options in grid format. Each parameter is indented with two spaces and then padded to maintain vertical alignment of each description. I think the visual spacing makes the options much easier to read. This is particularly important for people new to Kakoune who use `-help` as a way to become familiar with the program.
2017-07-23Do not reject switch parameters starting with `-`Maxime Coste
Closes #1193
2017-06-04Improve readability of command docstrings by changing formattingMaxime Coste
Fixes #1378
2017-03-15Small code tweaks regarding flags handlingMaxime Coste
2017-02-15Detect when switches are specified more than onceMaxime Coste
Fixes #1219
2016-12-27Use 'not empty' in place of 'length > 0'Maxime Coste
2016-12-24Added string length check when checking switch paramsLeira Hua
Fixes #1051
2016-09-05Small code tweak in generate_switches_docMaxime Coste
2015-09-16Store key hash in IdMapMaxime Coste
2015-03-14Change ParameterParser switch interface, use an Optional<StringView>Maxime Coste
Merge has_option and option_value into a single method get_switch.
2015-03-12Cleanup parameter parser codeMaxime Coste
2015-03-10Refactor String, use a common StringOps interface, hide std::stringMaxime Coste
2014-08-26Fix handling of -- in parameter parserMaxime Coste
2014-03-25fix segfault in parameter parserMaxime Coste
2014-03-20Fix support for switches style option in user commandsMaxime Coste
2014-03-02Consistently name -foo things 'switches'Maxime Coste
2014-03-02Add command switches information, and automatically display itMaxime Coste
2014-03-02All commands now take directly a parameter parserMaxime Coste
The command parameters description are now stored in a ParameterDesc structure.
2013-04-09rename assert to kak_assert to avoid collisionsMaxime Coste
2013-04-02ParameterParser takes flagsMaxime Coste
Only implemented flag is OptionsOnlyAtStart which considers options given after the first positional parameter as a positional one
2013-03-27Move parameter count validation to the ParameterParserMaxime Coste
2013-02-27ParameterParser: refactoring, simplifyMaxime Coste
2013-02-27Add a debug option to Makefile, and use KAK_DEBUG define to remove debug codeMaxime Coste
2012-12-07extract ParametersParser to it's own fileMaxime Coste