diff options
author | Your Name <you@example.com> | 2021-05-01 15:10:54 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-01 15:10:54 -0400 |
commit | 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d (patch) | |
tree | d9b808542216f71dbab053ad23145903e96c6401 /src/utils.cc | |
parent | 5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (diff) | |
download | dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.gz dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.bz2 dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.zip |
Added bash completion, amongst others
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.cc b/src/utils.cc index a44eced..f58dc61 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -72,6 +72,9 @@ std::vector<std::pair<std::string, int>> utils::copper2coins(int coppers) { coppers -= amnt.second * largest.second; ret.push_back(amnt); } + if(ret.empty()) { + ret.push_back({"cp", 0}); + } return ret; } |