File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>" ;
Original file line number Diff line number Diff 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
2121let content = '' ;
2222// Include the content of all header files
You can’t perform that action at this time.
0 commit comments