Check-in [1be15a57f1]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added basic implementation of RFE ticket [3a2a26513220342]: -verbose option for the "version" command.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1be15a57f1a64478aabd54019f97db5ba1e85a73
User & Date: stephan 2013-03-15 14:49:41.671
Context
2013-03-15
14:53
Fixed a C99ism (decl after code). check-in: 123e4bc589 user: stephan tags: trunk
14:49
Added basic implementation of RFE ticket [3a2a26513220342]: -verbose option for the "version" command. check-in: 1be15a57f1 user: stephan tags: trunk
14:35
ssh:// and file:// protocols now ignore proxy. (From Martin Gagnon.) check-in: 0d55a0ad0f user: stephan tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
740
741
742
743
744
745
746
747
748
749



750
751
752
753






















754
755
756
757
758
759
760
  assert(nCmd && "page list is empty?");
  multi_column_list(aCmd, nCmd);
}

/*
** COMMAND: version
**
** Usage: %fossil version
**
** Print the source code version number for the fossil executable.



*/
void version_cmd(void){
  fossil_print("This is fossil version " RELEASE_VERSION " "
                MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");






















}


/*
** COMMAND: help
**
** Usage: %fossil help COMMAND







|


>
>
>




>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
  assert(nCmd && "page list is empty?");
  multi_column_list(aCmd, nCmd);
}

/*
** COMMAND: version
**
** Usage: %fossil version ?-verbose|-v?
**
** Print the source code version number for the fossil executable.
** If the verbose option is specified, additional details will
** be output about what optional features this binary was compiled
** with
*/
void version_cmd(void){
  fossil_print("This is fossil version " RELEASE_VERSION " "
                MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
  if(!find_option("verbose","v",0)){
    return;
  }else{
    fossil_print("Compiled with the following features enabled:\n",
                 COMPILER_NAME);
    int count = 0;
#if defined(FOSSIL_ENABLE_SSL)
    ++count;
    fossil_print("\tSSL\n");
#endif
#if defined(FOSSIL_ENABLE_TCL)
    ++count;
    fossil_print("\tTCL\n");
#endif
#if defined(FOSSIL_ENABLE_JSON)
    ++count;
    fossil_print("\tJSON\n");
#endif
    if(!count){
      fossil_print("\tno optional features enabled.\n");
    }
  }
}


/*
** COMMAND: help
**
** Usage: %fossil help COMMAND