Projects acosom ziit ziit-cli Commits 88ed6355
ctrl k
  • src/main.c
    ■ ■ ■ ■ ■ ■
    skipped 101 lines
    102 102   result = EXIT_SUCCESS;
    103 103   if (argc > 1) {
    104 104   subprogram = argv[1];
    105  - if (strcmp(subprogram, "init") == 0) {
     105 + if (strcmp(subprogram, "i") == 0 || strcmp(subprogram, "init") == 0) {
    106 106   result = run_init(argc, argv, cfg);
    107  - } else if (strcmp(subprogram, "status") == 0) {
     107 + } else if (strcmp(subprogram, "s") == 0 ||
     108 + strcmp(subprogram, "status") == 0) {
    108 109   result = run_status(argc, argv, cfg);
    109  - } else if (strcmp(subprogram, "add") == 0) {
     110 + } else if (strcmp(subprogram, "a") == 0 || strcmp(subprogram, "add") == 0) {
    110 111   result = run_add(argc, argv, cfg);
    111  - } else if (strcmp(subprogram, "remove") == 0) {
     112 + } else if (strcmp(subprogram, "r") == 0 || strcmp(subprogram, "rm") == 0 ||
     113 + strcmp(subprogram, "remove") == 0) {
    112 114   result = run_remove(argc, argv, cfg);
    113  - } else if (strcmp(subprogram, "list") == 0) {
     115 + } else if (strcmp(subprogram, "l") == 0 ||
     116 + strcmp(subprogram, "list") == 0) {
    114 117   result = run_list(argc, argv, cfg);
    115  - } else if (strcmp(subprogram, "summary") == 0) {
     118 + } else if (strcmp(subprogram, "sm") == 0 ||
     119 + strcmp(subprogram, "summary") == 0) {
    116 120   result = run_summary(argc, argv, cfg);
    117 121   } else {
    118 122   print_help();
    skipped 16 lines
  • ziit.1
    ■ ■ ■ ■ ■ ■
    skipped 143 lines
    144 144  .B
    145 145  ziit summary year -g "%Y-%m"
    146 146  outputs a summary of all entries within the current year grouped by month.
     147 +.SH SHORT COMMANDS
     148 +Short command variants
     149 +.TP
     150 +.B
     151 +ziit a
     152 +Is the same as ziit add
     153 +.TP
     154 +.B
     155 +ziit rm
     156 +Is the same as ziit remove
     157 +.TP
     158 +.B
     159 +ziit l
     160 +Is the same as ziit list
     161 +.TP
     162 +.B
     163 +ziit s
     164 +Is the same as ziit status
     165 +.TP
     166 +.B
     167 +ziit sm
     168 +Is the same as ziit summary
     169 +.TP
     170 +.B
     171 +ziit i
     172 +Is the same as ziit init
     173 + 
    147 174  .SH FILES
    148 175  .TP
    149 176  .B
    skipped 7 lines
Please wait...
Page is in error, reload to recover