This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathCHANGES
45 lines (39 loc) · 1.6 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
1.3.2
========
- Fix issue when RunFunction tries to run a non-registerd command.
1.3.1
========
- Allow missing prefix for Bash Tab-completion.
1.3.0
========
- commandr.CommandrUsageException(my_message) can now be raised in a commandr
run function to print Usage.
- commandr.Usage(my_message) can now be called to print the Usage.
- If an argument has a default that is a list, Commandr will now allow multiple
values for that list.
- Adds support for Bash Tab-completion.
1.2.1
========
- The 'help' command has been added to give either the global help or help on
a specific command (help [command]).
- The option 'help_docs' was added to print __main__.__doc__ on help messages.
It defaults to True.
- The option 'main' has been added to SetOptions and command() to set a command
to get run when no command is supplied. Default is help.
- The option 'ignore_self' can now be passed in command() to override the global
value on a per function basis.
1.2.0
========
- Support @command() decorator with no name argument, which will fall back to
the function's name.
- Use the capitalized letter for the second instance of a single letter flag.
- Use the first line of the docstring when listing all available commands.
- Add 'ignore_self' option, which will ignore functions arguments named 'self'.
- Add RunFunction() method to invoke a single explicit function, instead of
name dispatched commands.
1.1.0
========
- issue#5: fix type casting for positional arguments
- issue#4: Add support for converting underscores to hyphens in parameter
names. Enabled by default.
- Add support for decorator 'stacks'