mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-10 13:06:22 +08:00
Remove redundant output of version
This commit is contained in:
parent
63198aded4
commit
70b38fe427
@ -2193,14 +2193,14 @@ void
|
|||||||
cli_print_version ()
|
cli_print_version ()
|
||||||
{
|
{
|
||||||
puts (xy_strjoin (3, "chsrc: Change Source (GPLv3) ",
|
puts (xy_strjoin (3, "chsrc: Change Source (GPLv3) ",
|
||||||
xy_str_to_magenta (Chsrc_Version), " by RubyMetric\n"));
|
xy_str_to_magenta (Chsrc_Version), " by RubyMetric"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cli_print_help ()
|
cli_print_help ()
|
||||||
{
|
{
|
||||||
cli_print_version ();
|
puts("");
|
||||||
for (int i=0; i<xy_arylen(usage); i++)
|
for (int i=0; i<xy_arylen(usage); i++)
|
||||||
{
|
{
|
||||||
puts (usage[i]);
|
puts (usage[i]);
|
||||||
@ -2330,7 +2330,9 @@ main (int argc, char const *argv[])
|
|||||||
|
|
||||||
if (argc==0)
|
if (argc==0)
|
||||||
{
|
{
|
||||||
cli_print_help (); return 0;
|
cli_print_version ();
|
||||||
|
cli_print_help ();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *command = argv[1];
|
const char *command = argv[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user