src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

portions.go (934B)


      1 package help
      2 
      3 const portions = `The %s command %ss portions to an entry.
      4 
      5 It accepts pairs of arguments -- a category name followed by a portion
      6 amount.
      7 
      8 For example:
      9 dqs %s fruit 1
     10 
     11 This will %s one portion to the Fruit category.
     12 
     13 It is possible to specify a half portion, e.g.:
     14 dqs %s vegetables 2.5
     15 
     16 Will %s 2½ portions to the Vegetable category.
     17 
     18 It is also possible to specify multiple pairs of arguments, e.g.:
     19 dqs %s dairy 1 "Whole Grains" 2
     20 
     21 This will %s 1 dairy portion, and 2 whole grain portions to an entry.
     22 Note that category names may be cased in any manner, but names with
     23 a space in them must be quoted, as in the "Whole Grains" example above.
     24 
     25 To reduce typing, abbreviations are available for category names, e.g.:
     26 dqs %s d 1 hqb 1 v 2 wg 1.5
     27 
     28 Will %s 1 portion of dairy, 1 portion of high quality beverages, 2
     29 portions of vegetables, and 1½ portions of whole grains.
     30 
     31 The following abbreviations are available:
     32 `