mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-03 17:56:17 -04:00
Quick fix for ZshCompletionOutput test
The test was failing because elipsis changed from "..." to "... ". This is a quick and dirty fix and should be cleaned up. Also updated copyright notice # Conflicts: # tests/test85.out # tests/test85.sh
This commit is contained in:
parent
5879dff268
commit
68fb0f35a2
2
COPYING
2
COPYING
@ -1,6 +1,8 @@
|
||||
|
||||
|
||||
Copyright (c) 2003 Michael E. Smoot
|
||||
Copyright (c) 2004 Daniel Aarno
|
||||
Copyright (c) 2017 Google Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
|
@ -231,6 +231,12 @@ inline void ZshCompletionOutput::printOption(Arg* a, std::string mutex)
|
||||
if ( a->isValueRequired() )
|
||||
{
|
||||
std::string arg = a->shortID();
|
||||
// Example arg: "[-A <integer>] ... "
|
||||
size_t pos = arg.rfind(" ... ");
|
||||
if (pos != std::string::npos) {
|
||||
arg.erase(pos);
|
||||
}
|
||||
|
||||
arg.erase(0, arg.find_last_of(theDelimiter) + 1);
|
||||
if ( arg.at(arg.length()-1) == ']' )
|
||||
arg.erase(arg.length()-1);
|
||||
|
0
tests/runtests.sh
Normal file → Executable file
0
tests/runtests.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user