Changeset 13006 for trunk


Ignore:
Timestamp:
03/07/12 18:48:02 (13 years ago)
Author:
tbretz
Message:
Reformated the output to make it better fit the help2man conversion.
Location:
trunk/FACT++/src
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/dimctrl.cc

    r12993 r13006  
    2424        "Usage: dimctrl [-c type] [OPTIONS]\n"
    2525        "  or:  dimctrl [OPTIONS]\n\n";
    26 
    27     Main::PrintUsage();
    2826    cout << endl;
    2927}
     
    3129void PrintHelp()
    3230{
     31    Main::PrintUsage();
    3332}
    3433
  • trunk/FACT++/src/fitsdump.cc

    r12967 r13006  
    852852        "\n"
    853853        "Usage: fitsdump [OPTIONS] fitsfile col col ... \n"
    854         "  or:  fitsdump [OPTIONS]\n";
    855 
    856     cout << endl;
    857 }
    858 
    859 void PrintHelp()
    860 {
    861     cout <<
     854        "  or:  fitsdump [OPTIONS]\n"
    862855        "\n"
    863         "To address a column several syntax is possible:\n"
    864         "  ColumnName:        Will address all fields of a column\n"
    865         "  ColumnName[n]:     Will address the n-th field of a column (starts with 0)\n"
    866         "  ColumnName[n1:n2]: Will address all fields between n1 and including n2\n"
     856        "Addressing a column:\n"
     857        "  ColumnName:         Will address all fields of a column\n"
     858        "  ColumnName[n]:      Will address the n-th field of a column (starts with 0)\n"
     859        "  ColumnName[n1:n2]:  Will address all fields between n1 and including n2\n"
    867860#ifdef HAVE_ROOT
    868861        "\n"
    869         "To select some columns can use --filter\n"
    870         "Such a selction is evaluated using TFormula, hence, every "
     862        "Selecting a column:\n"
     863        "  Commandline option:  --filter\n"
     864        "  Explanation:  Such a selection is evaluated using TFormula, hence, every "
    871865        "mathematical operation allowed in TFormula is allowed there, too. "
    872866        "The reference is the column index as printed in the output stream, "
    873867        "starting with 1. The index 0 is reserved for the row number.\n"
    874         "\n"
    875         "Example:\n"
    876         "  fitsdump Zd --filter=\"[0]>20 && cos([1])*TMath::RadToDeg()<45\"\n"
    877         "\n"
     868#endif
     869        ;
     870    cout << endl;
     871}
     872
     873void PrintHelp()
     874{
     875#ifdef HAVE_ROOT
     876    cout <<
     877        "\n\n"
     878        "Examples:\n"
    878879        "In --root mode, fitsdump support TFormula's syntax for all columns and the filter "
    879880        "You can then refer to a column or a (single) index of the column just by its name "
    880881        "If the index is omitted, 0 is assumed\n"
    881882        "\n"
    882 
    883         "Example:\n"
     883        "  fitsdump Zd --filter=\"[0]>20 && cos([1])*TMath::RadToDeg()<45\"\n"
     884        "\n"
     885        "The columns can also be addressed with their names\n"
     886        "\n"
    884887        "  fitsdump \"(Zd+Err)*TMath::DegToRad()\" --filter=\"Num>100 && Num<200\"\n"
     888        "\n"
    885889        "is identical to\n"
     890        "\n"
    886891        "  fitsdump \"(Zd[0]+Err[0])*TMath::DegToRad()\" --filter=\"Num[0]>100 && Num[0]<200\"\n"
    887         "A special placeholder exists for the row number:\n"
     892        "\n"
     893        "A special placeholder exists for the row number\n"
     894        "\n"
    888895        "  fitsdump \"#\" --filter=\"#>10 && #<100\"\n"
    889 #endif
    890896        "\n";
    891897    cout << endl;
    892 }
     898#endif
     899}
     900
    893901
    894902void SetupConfiguration(Configuration& conf)
Note: See TracChangeset for help on using the changeset viewer.