Ease usage - dossier - console collection manager
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 78b0654859a2be3209621f3b79b036bde426b545
 (DIR) parent a87cfd2eb3afd656374608c40600ff9ede81666a
 (HTM) Author: Solene Rapenne <solene@perso.pw>
       Date:   Tue, 24 Jul 2018 10:12:19 +0200
       
       Ease usage
       
       Diffstat:
         M cdb                                 |       3 +++
         M cdb.1                               |      12 +++++++++++-
       
       2 files changed, 14 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/cdb b/cdb
       @@ -271,4 +271,7 @@ fi
        
        if [ "$#" -ge 3 ]; then add_value "$@" ; fi
        
       +# no command, maybe it's an item, try it
       +if [ "$#" -eq 1 ]; then show "$1" ; fi
       +
        usage
 (DIR) diff --git a/cdb.1 b/cdb.1
       @@ -6,7 +6,7 @@
        .Nd a console collection manager
        .Sh SYNOPSIS
        .Nm
       -.Op Cm show | Cm help | Cm export | Cm collections | Cm search | Ar item attribute value
       +.Op Cm show | Cm help | Cm export | Cm collections | Cm search | Ar item Op attribute value
        .Sh DESCRIPTION
        .Pp
        .Nm
       @@ -80,6 +80,16 @@ in the attribute
        .Ar attribute.
        .Pp
        Using more arguments will return the list of the items matching all the conditions of values in attributes.
       +.It Nm Ar item-name
       +shows all the attributes known for that item.
       +.Pp
       +In case you need to use an
       +.Ar item-name
       +like "collections" or any other name being a
       +.Nm
       +command, the command
       +.Cm show Ar item-name
       +is required.
        .It Nm Ar item-name Ar attribute Ar value Op Ar attribute2 Ar value2 Ar ...
        Associate the value
        .Ar value