E.g. there's no reason (anymore?) to require the user to type `whatnow -prom'
when `whatnow -p' is already distinguishing.
#define HELPSW 5
{ "help", 0 },
#define LISTSW 6
- { "list", 1 },
+ { "list", 0 },
#define DELETESW 7
- { "delete", 2 },
+ { "delete", 0 },
#define NUMBERSW 8
- { "number", 2 },
+ { "number", 0 },
#define APPENDSW 9
- { "append", 1 },
+ { "append", 0 },
#define PRESERVESW 10
- { "preserve", 1 },
+ { "preserve", 0 },
#define NOPRESERVESW 11
- { "nopreserve", 3 },
+ { "nopreserve", 0 },
{ NULL, 0 }
};
static struct swit switches[] = {
#define MODESW 0
- { "mode", 1 },
+ { "mode", 0 },
#define FOLDERSSW 1
- { "folders", 1 },
+ { "folders", 0 },
#define VERSIONSW 2
- { "Version", 1 },
+ { "Version", 0 },
#define HELPSW 3
- { "help", 1 },
+ { "help", 0 },
{ NULL, 0 }
};
static struct swit switches[] = {
#define FORMSW 0
- { "form formfile", 4 },
+ { "form formfile", 0 },
#define VERSIONSW 1
{ "Version", 0 },
#define HELPSW 2
#define WIDTHSW 1
{ "width columns", 0 },
#define FILESW 2
- { "file file", 4 },
+ { "file file", 0 },
#define VERSIONSW 3
{ "Version", 0 },
#define HELPSW 4
#define EDITRSW 0
{ "editor editor", 0 },
#define PRMPTSW 1
- { "prompt string", 4 },
+ { "prompt string", 0 },
#define VERSIONSW 2
{ "Version", 0 },
#define HELPSW 3