Skip to content

Commit 0708475

Browse files
committed
Update version to version 0.0.9
1 parent aa54a36 commit 0708475

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

cclip.hpp

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#pragma once
10-
#define CCLIP_VERSION "0.0.8"
10+
#define CCLIP_VERSION "0.0.9"
1111

1212

1313
#ifndef OPTION_H
@@ -374,19 +374,26 @@ inline const char *cclip::options_manager::get_help() const
374374

375375
for (auto &option: this->options)
376376
{
377-
buf <<
377+
if (option->short_name[0])
378+
{
379+
buf <<
378380
#ifdef ANSIConsoleColors
379381
colors::ConsoleColors::GetColorCode(colors::ColorCodes::Blue) <<
380382
#endif
383+
"-" << option->short_name;
384+
if (option->long_name[0])
385+
buf << ", ";
386+
}
381387

382-
" -"
383-
<< option->short_name << ", " <<
384-
388+
if (option->long_name[0])
389+
{
390+
buf <<
385391
#ifdef ANSIConsoleColors
386392
colors::ConsoleColors::GetColorCode(colors::ColorCodes::Cyan) <<
387393
#endif
388-
"--"
389-
<< option->long_name;
394+
"--" << option->long_name;
395+
}
396+
390397
if (option->has_argument)
391398
{
392399
buf << " <arg>";

generate-hpp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const legalHeader = `/**
1616
For more information please visit our github page at https://github.com/Drew-Chase/cclip
1717
*/`
1818

19-
const version= '0.0.8';
19+
const version= '0.0.9';
2020

2121
let content = '';
2222
// Include the content of all header files

0 commit comments

Comments
 (0)